1 --- misc/build/postgresql-9.1.1/src/interfaces/libpq/Makefile 2011-09-22 23:57:57.000000000 +0200
2 +++ misc/build/postgresql-9.1.1.patched/src/interfaces/libpq/Makefile 2011-12-15 09:02:18.000000000 +0100
4 maintainer-clean: distclean maintainer-clean-lib
9 + @printf '%s\n' 'LIBPQ_DEP_LIBS+=$(SHLIB_LINK)' > '$@'
10 --- misc/build/postgresql-9.1.1/src/interfaces/libpq/win32.mak 2011-12-14 14:28:59.000000000 +0100
11 +++ misc/build/postgresql-9.1.1.patched/src/interfaces/libpq/win32.mak 2011-12-15 09:11:37.000000000 +0100
14 # CPU="i386" or CPU environment of nmake.exe (AMD64 or IA64)
16 -!IF ("$(CPU)" == "")||("$(CPU)" == "i386")
18 +!IF ("$(CPU)" == "")||("$(CPU)" == "I")
20 !MESSAGE Building the Win32 static library...
22 -!ELSEIF ("$(CPU)" == "IA64")||("$(CPU)" == "AMD64")
23 +!ELSEIF ("$(CPU)" == "X")
25 ADD_DEFINES=/D "WIN64" /Wp64 /GS
26 ADD_SECLIB=bufferoverflowU.lib
27 !MESSAGE Building the Win64 static library...
30 !MESSAGE Please check a CPU=$(CPU) ?
31 -!MESSAGE CPU=i386 or AMD64 or IA64
53 !IF "$(KFW_LIB_PATH)" == ""
54 -KFW_LIB_PATH=C:\kfw-2.6.5\lib\$(CPU)
55 +KFW_LIB_PATH=C:\kfw-2.6.5\lib\$(MACHINE)
56 !MESSAGE Using default Kerberos Library directory: $(KFW_LIB_PATH)
77 -ALL : config "$(OUTDIR)\$(OUTFILENAME).lib" "$(OUTDIR)\$(OUTFILENAME).dll"
78 +ALL : config "$(OUTDIR)\$(OUTFILENAME).lib"
81 -@erase "$(INTDIR)\getaddrinfo.obj"
84 if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
86 -CPP_PROJ=/nologo /W3 /EHsc $(OPT) /I "..\..\include" /I "..\..\include\port\win32" /I "..\..\include\port\win32_msvc" /I "..\..\port" /I. /I "$(SSL_INC)" \
87 +CPP_PROJ=/nologo /W3 /EHsc $(OPT) /I "..\..\include" /I "..\..\include\port\win32" /I "..\..\include\port\win32_msvc" /I "..\..\port" /I. $(SOLARINC) \
88 /D "FRONTEND" $(DEBUGDEF) \
89 /D "WIN32" /D "_WINDOWS" /Fp"$(INTDIR)\libpq.pch" \
90 /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c \
91 + /D "_CRT_NONSTDC_NO_DEPRECATE" \
92 /D "_CRT_SECURE_NO_DEPRECATE" $(ADD_DEFINES)
97 LINK32_FLAGS=kernel32.lib user32.lib advapi32.lib shfolder.lib wsock32.lib ws2_32.lib secur32.lib $(SSL_LIBS) $(KFW_LIB) $(ADD_SECLIB) \
98 /nologo /subsystem:windows /dll $(LOPT) /incremental:no \
99 - /pdb:"$(OUTDIR)\libpqdll.pdb" /machine:$(CPU) \
100 + /pdb:"$(OUTDIR)\libpqdll.pdb" /machine:$(MACHINE) \
101 /out:"$(OUTDIR)\$(OUTFILENAME).dll"\
102 /implib:"$(OUTDIR)\$(OUTFILENAME)dll.lib" \
103 /libpath:"$(SSL_LIB_PATH)" /libpath:"$(KFW_LIB_PATH)" \
107 "$(INTDIR)\libpq.res" : "$(INTDIR)" libpq-dist.rc
108 - $(RSC) $(RSC_PROJ) libpq-dist.rc
109 + $(RSC) $(SOLARINC) $(RSC_PROJ) libpq-dist.rc
112 "$(OUTDIR)\$(OUTFILENAME).dll" : "$(OUTDIR)" "$(INTDIR)\libpq.res"