Skip site navigation (1) Skip section navigation (2)

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

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Reduce dependancies of postmaster (without --as-needed)
Date: 2005-11-28 20:01:17
Message-ID: 20051128200111.GH31262@svana.org (view raw or flat)
Thread:
Lists: pgsql-patches
On Mon, Nov 28, 2005 at 01:58:09PM -0500, Tom Lane wrote:
> 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).

Regarding the restrictions for backend libs, consider the attached
patch. It just filters out anything readline related. Threading LIBS
are not in the LIBS variable at all.

Regarding the other, this is the kind of thing the buildfarm would be
good for. Would it be possible to arrange for each buildfarm machine to
execute the following after successful completion and capture the
output? It only needs to be run once.

cd $SOURCEDIR/src/backend
rm postgres
make LIBS=-lm postgres

It'll produce a lot of output but for example on my linux machine the
only undefined symbols are from -ldl and -lcrypt. This would provide a
solid base on which to make improvements.

Thanks in advance,
-- 
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

Responses

pgsql-patches by date

Next:From: Martijn van OosterhoutDate: 2005-11-28 21:36:23
Subject: Re: Reduce dependancies of postmaster (without --as-needed)
Previous:From: Tom LaneDate: 2005-11-28 18:58:09
Subject: Re: Reduce dependancies of postmaster (without --as-needed)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group