diff options
author | Magnus Hagander <magnus@hagander.net> | 2007-10-02 19:01:45 +0000 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2007-10-02 19:01:45 +0000 |
commit | de1172fa069ecaf08097d42be91b720bd34a2c44 (patch) | |
tree | 2f1eec97526c6111a44e7f6b46533275d1c40fe7 /src | |
parent | 5a0d31d3dc37b23ee85a7ed44b3766588cbd2e25 (diff) | |
download | postgresql-de1172fa069ecaf08097d42be91b720bd34a2c44.tar.gz postgresql-de1172fa069ecaf08097d42be91b720bd34a2c44.zip |
Default to thread safety on, and support more CPU options. Also
make sure that a CPU option is actually chosen.
Hiroshi Saito
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/libpq/win32.mak | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/interfaces/libpq/win32.mak b/src/interfaces/libpq/win32.mak index b5f825626d2..6a6df50ae30 100644 --- a/src/interfaces/libpq/win32.mak +++ b/src/interfaces/libpq/win32.mak @@ -6,17 +6,24 @@ # USE_KFW=1 will compile with kfw(kerberos for Windows) # DEBUG=1 compiles with debugging symbols # ENABLE_THREAD_SAFETY=1 compiles with threading enabled + +ENABLE_THREAD_SAFETY=1 + # CPU="i386" or CPU environment of nmake.exe (AMD64 or IA64) -!IF "$(CPU)" == "" +!IF ("$(CPU)" == "")||("$(CPU)" == "i386") CPU=i386 !MESSAGE Building the Win32 static library... !MESSAGE -!ELSE +!ELSEIF ("$(CPU)" == "IA64")||("$(CPU)" == "AMD64") ADD_DEFINES=/D "WIN64" /Wp64 /GS ADD_SECLIB=bufferoverflowU.lib !MESSAGE Building the Win64 static library... !MESSAGE +!ELSE +!MESSAGE Please check a CPU=$(CPU) ? +!MESSAGE CPU=i386 or AMD64 or IA64 +!ERROR Make aborted. !ENDIF !IFDEF DEBUG |