Undefine WITH_DEBUG?

Thomas Zander thomas.e.zander at googlemail.com
Wed May 2 09:19:24 UTC 2007


Hi,

I am trying to track down a problem with building mplayer with debug
symbols. The problem is that this seems possible (at least on my
machine) only if it is compiled with

-O{1|2|3} -fomit-frame-pointer

due to one of its incredibly smart inline-asm sections.
Now, when using WITH_DEBUG in a port, "-O" expressions are stripped
from the CFLAGS by the port build environment.
The actual issue is that users who define WITH_DEBUG globally for
their ports will probably run into this.

Is there an elegant solution to circumvent this and undefine WITH_DEBUG?

Riggs


More information about the freebsd-ports mailing list