Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 30657b7

Browse files
committed
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.
1 parent 8c9db4a commit 30657b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/template/cygwin

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
SRCH_LIB="/usr/local/lib"
44

55
# --allow-multiple-definition is required to link pg_dump because it finds
6-
# pg_toupper() in both libpq and pgport
7-
# --enable-auto-import gets rid of a diagnostics linker message
8-
LDFLAGS="-Wl,--allow-multiple-definition -Wl,--enable-auto-import"
6+
# pg_toupper() etc. in both libpq and pgport
7+
# --disable-auto-import is to ensure we get MSVC-like linking behavior
8+
LDFLAGS="-Wl,--allow-multiple-definition -Wl,--disable-auto-import"

0 commit comments

Comments
 (0)