summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2014-02-12 17:03:53 +0000
committerTom Lane2014-02-12 17:03:53 +0000
commit1c9acd5c86a71b8ab73bc139eb5e0ad292b9a7d4 (patch)
tree68307131e3c372d405ab8fe6b381ad17f34367b2
parent30657b796c7fdcaf9c0eb9ac53d4bab6399eb65b (diff)
Use --disable-auto-import linker switch in Mingw builds, too.
This is evidently the default on buildfarm member narwhal, but that is a pretty ancient Mingw version, and there is reason to think that more recent versions of GNU ld have this feature turned on by default. Since we are trying to achieve consistency of link behavior across all Windows toolchains, let's just make sure here.
-rw-r--r--src/template/win327
1 files changed, 5 insertions, 2 deletions
diff --git a/src/template/win32 b/src/template/win32
index 71f5fa1c1b..dc5b77ec07 100644
--- a/src/template/win32
+++ b/src/template/win32
@@ -1,3 +1,6 @@
+# src/template/win32
+
# --allow-multiple-definition is required to link pg_dump because it finds
-# pg_toupper() in both libpq and pgport
-LDFLAGS="-Wl,--allow-multiple-definition"
+# 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"