Skip to content

Commit de1172f

Browse files
committed
Default to thread safety on, and support more CPU options. Also
make sure that a CPU option is actually chosen. Hiroshi Saito
1 parent 5a0d31d commit de1172f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/interfaces/libpq/win32.mak

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,24 @@
66
# USE_KFW=1 will compile with kfw(kerberos for Windows)
77
# DEBUG=1 compiles with debugging symbols
88
# ENABLE_THREAD_SAFETY=1 compiles with threading enabled
9+
10+
ENABLE_THREAD_SAFETY=1
11+
912
# CPU="i386" or CPU environment of nmake.exe (AMD64 or IA64)
1013

11-
!IF "$(CPU)" == ""
14+
!IF ("$(CPU)" == "")||("$(CPU)" == "i386")
1215
CPU=i386
1316
!MESSAGE Building the Win32 static library...
1417
!MESSAGE
15-
!ELSE
18+
!ELSEIF ("$(CPU)" == "IA64")||("$(CPU)" == "AMD64")
1619
ADD_DEFINES=/D "WIN64" /Wp64 /GS
1720
ADD_SECLIB=bufferoverflowU.lib
1821
!MESSAGE Building the Win64 static library...
1922
!MESSAGE
23+
!ELSE
24+
!MESSAGE Please check a CPU=$(CPU) ?
25+
!MESSAGE CPU=i386 or AMD64 or IA64
26+
!ERROR Make aborted.
2027
!ENDIF
2128

2229
!IFDEF DEBUG

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