Re: static or dynamic libpgport - Mailing list pgsql-hackers

From Tom Lane
Subject Re: static or dynamic libpgport
Date
Msg-id 14015.1323566800@sss.pgh.pa.us
Whole thread Raw
In response to Re: static or dynamic libpgport  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: static or dynamic libpgport  (Andrew Dunstan <andrew@dunslane.net>)
Re: static or dynamic libpgport  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> On 12/09/2011 06:27 PM, Bruce Momjian wrote:
>> I am not against shipping a dynamic libpgport, but I will just point out
>> that this was never intended or anticipated.  Are there any symbols in
>> there that might conflict with other software?

> Possibly. Below is a list of symbols from a recent build.

This doesn't seem like much of an issue to me, since anything wanting to
link against libpgport would be designed to work with whatever it
provides, no?

> The other 
> thing is we'd need to turn on flags that make the object suitable for a 
> dynamic library (e.g. -fpic).

Right now, libpq laboriously rebuilds all the .o files it needs from
src/port/ so as to get them with -fpic.  It would be nice if we could
clean that up while we're doing this.  It might be all right to always
build the client-side version of libpgport with -fpic, though I'd be sad
if that leaked into the server-side build.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: patch : Allow toast tables to be moved to a different tablespace
Next
From: Peter Geoghegan
Date:
Subject: Re: pg_stat_statements with query tree based normalization