From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Albe Laurenz <all(at)adv(dot)magwien(dot)gv(dot)at>, pgsql-patches(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [HACKERS] Fix linking of OpenLDAP libraries |
Date: | 2006-09-08 19:47:46 |
Message-ID: | 20060908194746.GM5479@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
On Fri, Sep 08, 2006 at 03:20:00PM -0400, Tom Lane wrote:
> "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at> writes:
> > I did not only add them to the Makefile for interfaces/libpq,
> > but also everywhere something is linked against libpq in case
> > somebody links static.
> If we do need to start mentioning all of libpq's dependencies everywhere
> it's linked, I think it's time for a generic solution to that, instead
> of hacking each such place over again every time a new dependency pops up.
The business of having to include every single dependancy when linking
static is quite irritating. It has almost reached the point where
people are just giving up static linking because it's too much of a
pain.
However, if we do want to support it, the way you do it is by extending
pg_config to do something like:
pg_config --dynamic-lick => returns -lpq
pg_config --static-link => returns -lpq <plus other libs>
That way only people who actually want static linking need be bothered.
Have a ncie day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2006-09-08 19:48:04 | Re: Fixed length data types issue |
Previous Message | Tom Lane | 2006-09-08 19:47:23 | Re: Domains and subtypes, a brief proposal |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-09-09 03:18:07 | Re: [HACKERS] Fix linking of OpenLDAP libraries |
Previous Message | Tom Lane | 2006-09-08 19:20:00 | Re: [HACKERS] Fix linking of OpenLDAP libraries |