On Mon, Nov 28, 2005 at 05:31:55PM -0500, Tom Lane wrote:
> Larry Rosenman <ler(at)lerctr(dot)org> writes:
> >> -lnsl is needed on SVR4 derivatives, like Solaris and UnixWare. it is
> >> the network services library.
> > libsocket requires libnsl:
> >  NEEDED /usr/lib/libnsl.so.1
> Hmmm ... but given that, is it needed to mention libnsl in the link
> command at all, or can the linker pick it up implicitly?
Normal linkers automatically follow any NEEDED entries, that's why they
are there after all. I'm not ruling out bugs in the linker though.
That's why on most systems you can say -lreadline and not worry about
whether it uses curses or termcap.
And in any case, if it's only libsocket it that needs and we don't use
any symbols in it ourselves, then we surely don't need to reference it.
That's purely a dynamic linker issue.
Have a nice day,
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
In response to
pgsql-patches by date
|Next:||From: Alvaro Herrera||Date: 2005-11-29 01:48:29|
|Subject: Re: Install pg_regress by default|
|Previous:||From: Larry Rosenman||Date: 2005-11-28 22:47:38|
|Subject: Re: Reduce dependancies of postmaster (without --as-needed) |