aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-02-12 11:53:07 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2014-02-12 11:53:07 -0500
commit30657b796c7fdcaf9c0eb9ac53d4bab6399eb65b (patch)
treed37ceb4c99aab17464438be21497246b7d68d54d /src
parent8c9db4a5a4b5e8fe1142b1ea6659b225b7641a76 (diff)
downloadpostgresql-30657b796c7fdcaf9c0eb9ac53d4bab6399eb65b.tar.gz
postgresql-30657b796c7fdcaf9c0eb9ac53d4bab6399eb65b.zip
Remove --enable-auto-import linker switch in Cygwin build.
This is expected to make it start failing when contrib modules reference non-PGDLLIMPORT'ed global variables, as the other Windows build methods do. Aside from the value of consistency, the underlying implementation of this switch is pretty ugly and not really something we want to rely on if we have to use PGDLLIMPORT anyway for MSVC.
Diffstat (limited to 'src')
-rw-r--r--src/template/cygwin6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/template/cygwin b/src/template/cygwin
index 3948fab6410..8441bf9691f 100644
--- a/src/template/cygwin
+++ b/src/template/cygwin
@@ -3,6 +3,6 @@
SRCH_LIB="/usr/local/lib"
# --allow-multiple-definition is required to link pg_dump because it finds
-# pg_toupper() in both libpq and pgport
-# --enable-auto-import gets rid of a diagnostics linker message
-LDFLAGS="-Wl,--allow-multiple-definition -Wl,--enable-auto-import"
+# 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"