Subject: Re: Shared library symlinks and libtool
To: Alistair Crooks <>
From: Nick Hudson <>
List: tech-pkg
Date: 01/24/2001 14:34:05
Alistair Crooks wrote:

> The new PLISTs should simply document what libtool produces, and I
> *think* that means only listing two of the three possible symlinks,
> but that gives us slight problems with the print-PLIST target on
> a.out boxes generating perhaps erroneous PLISTs.  This is easy
> enough to fix - I just need to know what libtool does with a shared
> object when given a shared object with three version numbers.

Look at library_names_spec in your libtool.


library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'  


library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'

   ${release} is the argument to -release, and
   $versuffix is ${maj}.${min} from -version-info ${maj}:${min}:${age}

NetBSD doesn't use ${age}.