Building and linking shared libaries for multipledifferentversions of UNIX

Richard Sharpe sharpe at
Wed May 16 15:27:47 GMT 2001

At 10:31 AM 5/16/01 -0400, David Collier-Brown wrote:
>Richard Sharpe wrote:
>> At 08:19 AM 5/16/01 -0400, David Collier-Brown wrote:
>> >Richard Sharpe wrote:
>> >> 2. Can I get away with defining something like SOLDFLAGS, and simply
>> >> that to $(LD)?
>> >
>> >       Yes, for Solaris and Linux.

Actually, I plan to use $(CC) ...
>> OK, but when it comes to installing the shared library, it seems that I
>> have to copy the library as or something like that.
>> Later ldconfig will create a link from to the name above,
>> but for any linking with that library to work, it seems that I also need a
>> link from to ...
>	Yes: This is really a convention, used to allow easy
>	updates.  We create and link it to
>	When we upgrade, we leave 93 in place, add 94
>	and link 94 to
>	If an existing program needs version, it can get it,
>	but by default it just uses as the thing to link 
>	to.  Does that help?

OK, great explanation. What action do I need to take when I install 

Do I need to run ldconfig, and then create the link if it doesn't already

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