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

Lines changed: 3 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy