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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Reduce dependancies of postmaster (without --as-needed)
Date: 2005-11-28 18:58:09
Message-ID: 13145.1133204289@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> It bothers me that we don't even *know* the dependancies or even why
> they're there. Those autoconf lines have been there ever since autoconf
> use was started. They were added with only the comment "detect these
> libraries". If -lnsl or -lresolv is needed for gethostbyname() on some
> platform then it should check that that function is actually in that
> library before pulling it in, rather than pulling it unconditionally.

I have no problem with trying to make configure more selective about
which libraries we need at all. That's an orthogonal problem from
what the backend makefile should try to filter out, though. With
respect to system libraries, I would think that the backend needs
everything we need at all --- certainly everything to do with
networking. Threading support and readline are the only things
I can see that are reasonable to omit from the backend link (and
we already take care of the threading bit I believe).

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-11-28 20:01:17 Re: Reduce dependancies of postmaster (without --as-needed)
Previous Message Martijn van Oosterhout 2005-11-28 18:34:17 Re: Reduce dependancies of postmaster (without --as-needed)