Skip to content

Commit 8d6e2d4

Browse files
committed
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.
1 parent 734ff84 commit 8d6e2d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/template/cygwin

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ SRCH_LIB="/usr/local/lib"
44

55
# --allow-multiple-definition is required to link pg_dump because it finds
66
# 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"
7+
# we'd prefer to use --disable-auto-import to match MSVC linking behavior,
8+
# but support for it in Cygwin is too haphazard
9+
LDFLAGS="-Wl,--allow-multiple-definition -Wl,--enable-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