Building and linking shared libaries for
multipledifferentversions of UNIX
Richard Sharpe
sharpe at ns.aus.com
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 libFoo.so.93.
Yes, I was planning on
$(CC) ... -Wl,-soname,$@ ...
(stolen shamelessly from CUPS and other places, no doubt)
>Steve Langasek
>postmodern programmer
Regards
-------
Richard Sharpe, sharpe at ns.aus.com
Samba (Team member, www.samba.org), Ethereal (Team member, www.ethereal.com)
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba
More information about the samba-technical
mailing list