is there a way to find out gfortran version and/or options from a given binary?

Kay Diederichs kay.diederichs@uni-konstanz.de
Wed Jun 1 08:42:25 GMT 2022


Hi,

is there any gfortran option and/or version information available from/in a binary? Maybe accessible with objdump or strings?

For ifort, we use the -sox option ("This option tells the compiler to save the compilation options and version number in the executable file. ..."). This enables e.g.
strings /path/to/binary | grep Intel

Or is there a gfortran option that makes this accessible in a binary?

Thanks,
Kay




More information about the Fortran mailing list