"Marko Kreen" <[EMAIL PROTECTED]> writes: > On 5/18/08, Tom Lane <[EMAIL PROTECTED]> 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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers