Undefine WITH_DEBUG?

Chuck Swiger cswiger at mac.com
Wed May 2 17:01:15 UTC 2007


Alexander Nedotsukov wrote:
> Thomas Zander wrote:
[ ... ]
>> Is there an elegant solution to circumvent this and undefine WITH_DEBUG?

> I think you need to add DEBUG_FLAGS="-g -O2 -fomit-frame-pointer".

On some platforms, you'll need to get rid of -fomit-frame-pointer to have 
usable stack frames in the output executable for the debugger to use. 
Depending on the code and the bug in question, it might be easier to see 
what's going on using only "-g" or "-g -O"...

-- 
-Chuck


More information about the freebsd-ports mailing list