[XForms] Trying to get a handle on libtool's versioning system

Trent Piepho xyzzy at speakeasy.org
Fri May 7 05:53:17 EDT 2004


On Fri, 7 May 2004, Angus Leeming wrote:
> On Friday 07 May 2004 12:23 am, Todd Denniston wrote:
> > unfortunately the archive does not go back to december of 1999
> > but the lestif guy's were having fun with the libtool versions too.

I missed the beginning and point of this thread, but I'm going to go out on a
limb and guess what you're trying to do.

I created a libtool verion of the Makefile for netcdf, which uses a normal
verion number scheme, major.minor.patchlevel, just like pretty much everything
does.

libtool uses a different and unique version number system, mapped into the
normal major.minor.patch system that the dynamic linker uses.

I decided that rather than use the libtool system, I'd just have normal
version numbers.  So I did this in the Makefile:

$(LIBRARY):    $(LIB_OBJS)
       major=`cut -d. -f1 ../VERSION` && \
       minor=`cut -d. -f2 ../VERSION` && \
       rev=`cut -d. -f3 ../VERSION` && \
       libtoolver=`expr $$major + $$minor` && \
       $(LINK.c) $(LIB_OBJS) \
           -rpath $(LIBDIR) -version-info $$libtoolver:$$rev:$$minor


VERSION is a file that was part of the normal build process, and would just
have the text "3.5.0" in it.  This will get libtool to create a shared object
libnetcdf.so-3.5.0, like you would expect.  

If you're trying to create a libforms shared object with a normal version
number, maybe this will help?



More information about the Xforms mailing list