summaryrefslogtreecommitdiff
path: root/src/template
diff options
context:
space:
mode:
authorBruce Momjian2004-11-08 05:23:26 +0000
committerBruce Momjian2004-11-08 05:23:26 +0000
commit0d3b8e9a5025fe1ad2ee158025d6da5d61ec022e (patch)
tree30fb5eccffd492d1804875b97754ecc8655ce34a /src/template
parent3a372d61d0799ea82124887262d18ca21e385f22 (diff)
Allow win32/cygwin link against the first matching library symbol rather
than erroring out. This is the Unix behavior.
Diffstat (limited to 'src/template')
-rw-r--r--src/template/cygwin5
-rw-r--r--src/template/win324
2 files changed, 9 insertions, 0 deletions
diff --git a/src/template/cygwin b/src/template/cygwin
index 9b342ba8ab5..ae7bb16bd18 100644
--- a/src/template/cygwin
+++ b/src/template/cygwin
@@ -1 +1,6 @@
SRCH_LIB="/usr/local/lib"
+
+# This is required to link pg_dump because it finds pg_toupper() in
+# libpq and pgport
+LDFLAGS="-Wl,--allow-multiple-definition"
+
diff --git a/src/template/win32 b/src/template/win32
index e69de29bb2d..e9ab1fe7a54 100644
--- a/src/template/win32
+++ b/src/template/win32
@@ -0,0 +1,4 @@
+# This is required to link pg_dump because it finds pg_toupper() in
+# libpq and pgport
+LDFLAGS="-Wl,--allow-multiple-definition"
+