[PATCH 2/2] Move compile-time checks around pa_run_from_build_tree to core-util

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



'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/]




[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux