* Christian Ullrich wrote:
I think I have a pretty good fix: Early in configure, see if the linker understands --no-copy-dt-needed-entries, or alternatively --no-add-needed (which is a deprecated name for the same thing). This is the "light" version of --as-needed: It does not discard unneeded libraries immediately, but ignores their dependencies. configure basically works as before, except that indirect dependencies cannot "hide" required libraries from it anymore.
Oh, I should have made this clearer: This works without any modification to configure or anything else, so configure can still add --as-needed to the build LDFLAGS.
-- Christian -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs