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
Post a Comment