I'm trying to find a way to get the version of my c library, compiled with libtool.
I added -version-info 1:1:1
to LD_FLAGS
in makefile.am
and the output is ok: lib.so.0.1.1
What I need is to retrieve runtime the version of that library and show it on an information panel.
I'm thinking on two different ways to do that:
-version-info
option.Is one of those ideas applicable?
Define LIB_VERSION = 0:1:1
Use it: -version-info $(LIB_VERSION)
and append it to cflags if you want to use it from code: -DVERSION=$(LIB_VERSION)