On 21/07/2011, at 6:41 PM, Dave Shield wrote:
> On 21 July 2011 00:46, Ben Nizette <[email protected]> wrote:
>>> No - but -fstack-protector *is* listed in the LTCFLAGS variable within the
>>> libtool script.
>>>
>>> Ben - try removing this option from there, and re-running configure.
>>
>> Hm, I can't see it in my libtool script (we are talking ltmain.sh right?).
>
> No - we are talking about the 'libtool' script itself.
>
> This is build by configure using the ltmain.sh template
> (so tweaking the flags needs to be done at an earlier stage)
>
>
>> The only time LTCFLAGS appears to be set anywhere in the net-snmp
>> distribution
>> is in the configure script like
>>
>> LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
>>
>> In fact,
>
> OK - so this brings us back fixing the setting of CFLAGS.
>
> Looking more closely at config.log, the first appearance of the
> -fstack-protector option appears to be as part of detecting the flags
> used for the perl binary.
>
> If you're not using the perl modules on your embedded system,
> you could try the following:
>
> ./configure --with-perl-modules=no --disable-embedded-perl
> --with-cflags="-fno-stack-protector"
Hi Dave,
Sorry for the slow response, indeed I don't have to use Perl and disabling
those options stops the stack protector flags raising their heads.
That'll solve the problem for now, thanks for your help!
--Ben.
>
> That seems to do the trick for me.
>
> Dave
------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders