Re: Link requirements creep

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Marko Kreen" <markokr(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Link requirements creep
Date: 2008-05-18 00:19:35
Message-ID: 15531.1211069975@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Marko Kreen" <markokr(at)gmail(dot)com> writes:
> On 5/18/08, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> I was displeased to discover just now that in a standard RPM build of
>> PG 8.3, psql and the other basic client programs pull in libxml2 and
>> libxslt; this creates a package dependency that should not be there
>> by any stretch of the imagination.

>> Thoughts, better ideas?

> 1. Use -Wl,--as-needed as linker flag. Portability unknown...
> Can be autoconfed.

This might actually be the best solution. OS X has a similar disease
but some trolling of the ld man page suggests that -dead_strip_dylibs
might work there. Taking this path would amount to assuming that all
linkers we care about either have an equivalent switch or don't link
unrequired libraries in the first place.

I'll do some experimenting...

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2008-05-18 01:02:23 Re: Link requirements creep
Previous Message Andrew Dunstan 2008-05-17 23:44:48 Re: windows builds hanging on regression checks