Le mardi 14 juin 2011 22:57:01 Reinhold Kainhofer, vous avez ?crit : > Am Dienstag, 14. Juni 2011, 22:32:25 schrieb Chris Bagwell: > > configure will not default to CFLAGS="-g -O2" if you specify your own > > value. But if your getting two -O2 then something else may be adding > > it as well. > > Yes, the culprit is the net-snmp library... > To get the include path for the net-snmp library, the binary > "net-snmp-config" is called with --cflags and the result is appended to > CFLAGS. Unfortunately, > > reinhold at einstein:~$ net-snmp-config --cflags > -g -O2 -Ulinux -Dlinux=linux -Wall -Wstrict-prototypes -Wwrite-strings > -Wcast- qual -I. -I/home/reinhold/.build/include > > Judging from the output of net-snmp-config --help, there is no other way to > get the correct include pathes / libraries to link to net-snmp without > dragging in all unneeded compiler flags... > > Cheers, > Reinhold
Hello, Thanks for your help. By configuring with CFLAGS=-ggdb and --without-snmp I can do the debug I need without optimized out functions or variables. Regards, Stef