summaryrefslogtreecommitdiff
path: root/src/template/cygwin
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-02-16 15:14:04 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2014-02-16 15:14:04 -0500
commit8d6e2d4abf77c422714448e5f4270fdb1a84d973 (patch)
treebf1f1c45f2a01c72fca2373a57c0ef4681b73a07 /src/template/cygwin
parent734ff84b086e098e6106f19c4146357c5eaa9594 (diff)
downloadpostgresql-8d6e2d4abf77c422714448e5f4270fdb1a84d973.tar.gz
Revert to using --enable-auto-import in Cygwin builds.
Disabling auto-import requires that all libraries we use be careful about declspecs for exported variables; and it seems they aren't. This means that Cygwin will not give us useful info about missing PGDLLIMPORT markers; but it's probably sufficient that MSVC and Mingw builds do.
Diffstat (limited to 'src/template/cygwin')
-rw-r--r--src/template/cygwin5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/template/cygwin b/src/template/cygwin
index 8441bf9691..e484fe650c 100644
--- a/src/template/cygwin
+++ b/src/template/cygwin
@@ -4,5 +4,6 @@ SRCH_LIB="/usr/local/lib"
# --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"
+# 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"