From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Larry Rosenman <ler(at)lerctr(dot)org>, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Reduce dependancies of postmaster (without --as-needed) |
Date: | 2005-11-28 22:53:24 |
Message-ID: | 20051128225317.GJ31262@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
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:
>
> > [1] 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.
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2005-11-29 01:48:29 | Re: Install pg_regress by default |
Previous Message | Larry Rosenman | 2005-11-28 22:47:38 | Re: Reduce dependancies of postmaster (without --as-needed) |