Skip to content

Commit 1c9acd5

Browse files
committed
Use --disable-auto-import linker switch in Mingw builds, too.
This is evidently the default on buildfarm member narwhal, but that is a pretty ancient Mingw version, and there is reason to think that more recent versions of GNU ld have this feature turned on by default. Since we are trying to achieve consistency of link behavior across all Windows toolchains, let's just make sure here.
1 parent 30657b7 commit 1c9acd5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/template/win32

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# src/template/win32
2+
13
# --allow-multiple-definition is required to link pg_dump because it finds
2-
# pg_toupper() in both libpq and pgport
3-
LDFLAGS="-Wl,--allow-multiple-definition"
4+
# pg_toupper() etc. in both libpq and pgport
5+
# --disable-auto-import is to ensure we get MSVC-like linking behavior
6+
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