Re: embedding compile options in program

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

 



On 9 June 2013 23:29, Ilya Shlyakhter wrote:
> Is there a conditional define that expands to  a string of the full
> gcc command-line used to compile the given .c/.cc file?  I'd like to
> embed in the executable the exact compilation options used to build
> it.

No, but see the -grecord-gcc-switches option:

http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#index-grecord_002dgcc_002dswitches-564




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux