Skip to content
Snippets Groups Projects
Commit 30657b79 authored by Tom Lane's avatar Tom Lane
Browse files

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.
parent 8c9db4a5
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
SRCH_LIB="/usr/local/lib" SRCH_LIB="/usr/local/lib"
# --allow-multiple-definition is required to link pg_dump because it finds # --allow-multiple-definition is required to link pg_dump because it finds
# pg_toupper() in both libpq and pgport # pg_toupper() etc. in both libpq and pgport
# --enable-auto-import gets rid of a diagnostics linker message # --disable-auto-import is to ensure we get MSVC-like linking behavior
LDFLAGS="-Wl,--allow-multiple-definition -Wl,--enable-auto-import" LDFLAGS="-Wl,--allow-multiple-definition -Wl,--disable-auto-import"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment