Re: Finding gcc options from a .so lib

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

 



Andrew Haley wrote:
M K wrote:
Hello,

If I have a .so library, can I find out the compilation flags that
were used when the .so was being built?

No.
Unless the .so was build with GCC-4.3 or later *and* the |-frecord-gcc-switches| option was used. In this case you could extract the information using the objdump program. Note that I have never used this new feature so this comment is based solely on the compiler documentation.

David Daney


[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