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"
That seems to do the trick for me.
Dave
------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders