summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorJesús Corrius <jesus@softcatala.org>2012-05-03 13:34:01 +0200
committerJesús Corrius <jesus@softcatala.org>2012-05-03 13:34:01 +0200
commitdb649c52911fd5b030a7e4e0c941d7ee75b98785 (patch)
tree01310e0aedeb1ce0580172e375b3ec9e8897df29 /connectivity
parentb36612d4a34e4ab131c904a9e35ab3e2bded76f5 (diff)
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.
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/postgresql/makefile.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/connectivity/source/drivers/postgresql/makefile.mk b/connectivity/source/drivers/postgresql/makefile.mk
index acf8b8c87ac1..26e878b8ee1a 100644
--- a/connectivity/source/drivers/postgresql/makefile.mk
+++ b/connectivity/source/drivers/postgresql/makefile.mk
@@ -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"