c++ - Is there a way to find out the compiler options that were used when a .so library was compiled on Linux? -


i need know how library have has been compiled, i.e. compiler options used? specifically, whether compiled optimization or not, , few other options.

is there way extract information on linux, x86_64 platform?

i don't believe it's possible automatically detect compiler options; @ least not in portable way.

what instead change build scripts (e.g. makefile) automatically append define optimization argument (the -d flag).


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -