Wireshark-dev: Re: [Wireshark-dev] --with-net-snmp adds addtional options to CFLAGS: Issue if u
From: Bill Meier <wmeier@xxxxxxxxxxx>
Date: Wed, 22 Aug 2007 13:30:31 -0400
Thomas Anders wrote:

Lots of them are actually inherited from Perl because net-snmp comes
with embedded Perl support by default. What's the output of "perl
-MExtUtils::Embed -e ccopts" on your system?

Answer:
 -D_GNU_SOURCE
 -fno-strict-aliasing
 -pipe
 -Wdeclaration-after-statement
 -I/usr/local/include
 -D_LARGEFILE_SOURCE
 -D_FILE_OFFSET_BITS=64
 -I/usr/include/gdbm
 -I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE
 -D_REENTRANT



I got into this because 'CFLAGS="-g -O0" ./configure' didn't do what I wanted. It turns out that 'net-snmp-config --cflags' brings in -O2 thus cauing the -O0 to be overridden.