Re: make use of ld --as-needed - Mailing list pgsql-patches

From Tom Lane
Subject Re: make use of ld --as-needed
Date
Msg-id 18825.1115265725@sss.pgh.pa.us
Whole thread Raw
In response to make use of ld --as-needed  (Neil Conway <neilc@samurai.com>)
Responses Re: make use of ld --as-needed
List pgsql-patches
Neil Conway <neilc@samurai.com> writes:
> The easiest fix is to make use of GNU ld's --as-needed flag, which
> ignores linker arguments that are not actually needed by the specified
> object files. The attached patch modifies configure to check for this
> flag (when using GNU ld),

Minor gripe --- what's the motivation for moving this down as you did?
Seems like if there's something wrong there, it would justify rather
more rearrangements in the order of tests than just this.

Also, please s/same platforms/some platforms/

            regards, tom lane

pgsql-patches by date:

Previous
From: Neil Conway
Date:
Subject: make use of ld --as-needed
Next
From: Neil Conway
Date:
Subject: Re: make use of ld --as-needed