Tom Lane wrote:
>
>> 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.
>
>
>
Didn't we run into problems with this before?
cheers
andrew