Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+5-2
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)