Have configuration templates augment, not replace, LDFLAGS.
authorNoah Misch <noah@leadboat.com>
Wed, 11 Jun 2014 23:50:57 +0000 (19:50 -0400)
committerNoah Misch <noah@leadboat.com>
Wed, 11 Jun 2014 23:50:57 +0000 (19:50 -0400)
This preserves user-specified LDFLAGS; we already kept user-specified
CFLAGS and CPPFLAGS.  Given the shortage of complaints and the fact that
any problem caused is likely to appear at build time, no back-patch.

Dag-Erling Smørgrav and Noah Misch

src/template/cygwin
src/template/win32

index e484fe650c6e8958967eca857e6a9cb4414924cd..b6ea0ded522c5a8091808526cae9c6ba04d52df8 100644 (file)
@@ -6,4 +6,4 @@ SRCH_LIB="/usr/local/lib"
 # pg_toupper() etc. in both libpq and pgport
 # we'd prefer to use --disable-auto-import to match MSVC linking behavior,
 # but support for it in Cygwin is too haphazard
-LDFLAGS="-Wl,--allow-multiple-definition -Wl,--enable-auto-import"
+LDFLAGS="$LDFLAGS -Wl,--allow-multiple-definition -Wl,--enable-auto-import"
index dc5b77ec0768a5a90388ce74cf2a59d2b3335965..7da9719acbdacace04dac0cfea3b6a1e6ac2c345 100644 (file)
@@ -3,4 +3,4 @@
 # --allow-multiple-definition is required to link pg_dump because it finds
 # pg_toupper() etc. in both libpq and pgport
 # --disable-auto-import is to ensure we get MSVC-like linking behavior
-LDFLAGS="-Wl,--allow-multiple-definition -Wl,--disable-auto-import"
+LDFLAGS="$LDFLAGS -Wl,--allow-multiple-definition -Wl,--disable-auto-import"