'Twas brillig, and Colin Guthrie at 24/03/11 09:02 did gyre and gimble: > 'Twas brillig, and Maarten Bosmans at 22/03/11 15:06 did gyre and gimble: >> Is there a better way than >> #if defined(__linux__) && !defined(__OPTIMIZE__) >> to check for a debug build? By default the CFLAGS contain -g -O2, so >> __OPTIMIZE__ will not be defined and running uninstalled does not >> work. > > Do you mean __OPTIMIZE__ *will* be defined? Also, is there any way we can check to see if the binary being run is in the build tree? Would that be an easier hack? Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mageia Contributor [http://www.mageia.org/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/]