Make another try at using -Wl,--as-needed to suppress linking of unnecessary
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 May 2008 20:13:12 +0000 (20:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 May 2008 20:13:12 +0000 (20:13 +0000)
commite85c667dd4ec3940a71f5d81c00f474f29812a61
treefbc1eefd3bcc294370ea486b6c0821a7c2910f1e
parent7f55030d45d7e4b762a1a2deb9512c58f721e75f
Make another try at using -Wl,--as-needed to suppress linking of unnecessary
shared libraries.  We've tried this before and had problems with libreadline
not linking properly on some platforms, but that seems to be a libreadline
bug that may have been fixed by now.  In any case, it's early enough in the
8.4 devel cycle that we can afford to have some transient breakage while
we work out any portability problems.

On Darwin, we try -Wl,-dead_strip_dylibs, which seems to be the equivalent
incantation there.
config/c-compiler.m4
configure
configure.in