[Bro-Dev] enable-debug doesn't work on FreeBSD

Gregor Maier gregor at icir.org
Wed Aug 3 13:15:01 PDT 2011


Hi,

when I run ./configure --enable-debug on FreeBSD it doesn't use the -g 
flag for gcc:
CC:                /usr/bin/gcc
CFLAGS:             -Wall -Wno-unused -DDEBUG
CXX:               /usr/bin/c++
CXXFLAGS:           -Wall -Wno-unused -DDEBUG
CPP:               /usr/bin/c++


It works fine on Linux and Mac OS X:
CC:                /usr/bin/gcc
CFLAGS:             -Wall -Wno-unused -DDEBUG -g
CXX:               /usr/bin/c++
CXXFLAGS:           -Wall -Wno-unused -DDEBUG -g
CPP:               /usr/bin/c++

Both my Mac OS and the Free BSD have gcc 4.2.1 and cmake 2.8.4. Any 
ideas what's wrong?


(and BTW, just wondering whether -O0 should be added as well (I know 
it's the default))


cu
Gregor
-- 
Gregor Maier
<gregor at icir.org>  <gregor at icsi.berkeley.edu>
Int. Computer Science Institute (ICSI)
1947 Center St., Ste. 600
Berkeley, CA 94704, USA
http://www.icir.org/gregor/


More information about the bro-dev mailing list