Kaydet (Commit) db649c52 authored tarafından Jesús Corrius's avatar Jesús Corrius

Fix Windows debug build.

The postgresql static library on Windows is named libpqd.lib in
debug and libpq.lib when compiled in release. We prefer to not
touch the external postgresql, so we make the proper changes in
the connectivity module.
üst b36612d4
......@@ -81,7 +81,11 @@ LIBPQ_DEP_LIBS=
LIBPQ_LINK=-lpq
.ELSE #SYSTEM_POSTGRESQL==NO
.IF "$(GUI)$(COM)"=="WNTMSC"
.IF "$(debug)" == ""
LIBPQ_LINK:=$(OUTDIR)/lib/libpq.lib ws2_32.lib secur32.lib advapi32.lib shell32.lib
.ELSE
LIBPQ_LINK:=$(OUTDIR)/lib/libpqd.lib ws2_32.lib secur32.lib advapi32.lib shell32.lib
.ENDIF
LIBPQ_DEP_LIBS += \
$(OPENSSLLIB)
.IF "$(WITH_LDAP)" == "YES"
......
......@@ -5,4 +5,4 @@ mkdir: %_DEST%\inc\postgresql
..\%__SRC%\misc\build\postgresql-*\src\interfaces\libpq\libpq-flags.mk %_DEST%\inc\postgresql
..\%__SRC%\misc\build\postgresql-*\src\interfaces\libpq\libpq.a %_DEST%\lib
..\%__SRC%\misc\build\postgresql-*\src\interfaces\libpq\libpq.lib %_DEST%\lib
..\%__SRC%\misc\build\postgresql-*\src\interfaces\libpq\libpqd.lib %_DEST%\lib
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment