Re: Reduce dependancies of postmaster (without --as-needed)

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Reduce dependancies of postmaster (without --as-needed)
Дата
Msg-id 20051128225317.GJ31262@svana.org
обсуждение исходный текст
Ответ на Re: Reduce dependancies of postmaster (without --as-needed)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
On Mon, Nov 28, 2005 at 05:31:55PM -0500, Tom Lane wrote:
> Larry Rosenman <ler@lerctr.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@svana.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.

Вложения

В списке pgsql-patches по дате отправления:

Предыдущее
От: Larry Rosenman
Дата:
Сообщение: Re: Reduce dependancies of postmaster (without --as-needed)
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Install pg_regress by default