Building and linking shared libaries for multiple different versions of UNIX

samba-technical at samba-technical at
Wed May 16 16:04:25 GMT 2001

On Thu, May 17, 2001 at 01:08:38AM +0900, Richard Sharpe wrote:
> At 09:54 AM 5/16/01 -0500, samba-technical at wrote:
> >  8. Will you embed an soname in the snamed library (cf -soname on
> >     Linux ld).
> Yes, I was planning on $(CC) ... -Wl,-soname,$@ ...

Make -Wl,-soname a variable. It's not uniform across all platforms.
Also, are you guaranteed that $(CC) is the correct program to build
shared libraries on all platforms? I'm not sure. For some platforms,
libtool uses ld.

albert chin (china at

More information about the samba-technical mailing list