Hello, I'd like to embed version number information in a shared object (.so) binary during compiling and linking. It looks like there is not a resource file available on Linux like on Windows with a version.rc resource file. When building a DLL on Windows I can include a version.rc resource file and use the rc.exe resource compiler to get the version.res file to link into the DLL. In the DLL properties/Details it gives the File Version number as 1.0.0.0 (similar discussion in: https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/281529 ).
Is there another approach used to embed version information for the shared object binary on Linux that can later be extracted by an external program?
I've seen that one convention on Linux is to append the version number to the .so file: libname.so.1.0.0
Perhaps I should add a few parameter statements in the Fortran to save the version numbers or string that could be accessed through an externally available routine to return the version information.
Thanks for your suggestions.
Greg T.