Building and linking shared libaries for multipledifferentversions of UNIX

Richard Sharpe sharpe at
Wed May 16 15:45:53 GMT 2001

At 10:03 AM 5/16/01 -0500, Steve Langasek wrote:
>On Thu, 17 May 2001, Richard Sharpe wrote:
>> Do I need to run ldconfig, and then create the link if it doesn't already
>> exist?
>ldconfig isn't universally used, even on Linux... I think simply creating the
>symlinks is the most straightforward way to handle it.
>If you're going to have versioned libraries, you'll also need to pass an
>option to the linker to specify the versioned soname -- otherwise, programs
>which link against the library won't actually know they need

Yes, I was planning on

   $(CC) ... -Wl,-soname,$@ ...

(stolen shamelessly from CUPS and other places, no doubt)

>Steve Langasek
>postmodern programmer

Richard Sharpe, sharpe at
Samba (Team member,, Ethereal (Team member,
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba

More information about the samba-technical mailing list