Subject: Re: Shared library symlinks and libtool
To: Alistair Crooks <agc@pkgsrc.org>
From: Nick Hudson <nick@nthcliff.demon.co.uk>
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.

a.out:

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

ELF:

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

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

NetBSD doesn't use ${age}.

Nick
-- 
aka skrll@netbsd.org, skrll@excite.co.uk