I need to know how the library I have has been compiled, i.e. which compiler options were used? Specifically, whether it was compiled with optimization or not, and few other options.
Is there any way to extract this information on linux, x86_64 platform?
I don't believe it's possible to automatically detect compiler options; at least not in a portable way.
What you could do instead is change your build scripts (e.g. your Makefile) to automatically append a define together with the optimization argument (the -D flag).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With