summaryrefslogtreecommitdiffstats
path: root/connectivity/Library_postgresql-sdbc-impl.mk
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/Library_postgresql-sdbc-impl.mk')
-rw-r--r--connectivity/Library_postgresql-sdbc-impl.mk13
1 files changed, 8 insertions, 5 deletions
diff --git a/connectivity/Library_postgresql-sdbc-impl.mk b/connectivity/Library_postgresql-sdbc-impl.mk
index 37c40746c7cf..d733f01662ea 100644
--- a/connectivity/Library_postgresql-sdbc-impl.mk
+++ b/connectivity/Library_postgresql-sdbc-impl.mk
@@ -60,18 +60,21 @@ endif
$(eval $(call gb_Library_use_externals,postgresql-sdbc-impl,\
boost_headers \
postgresql \
+ openssl \
+ openldap \
+ nss3 \
+ plc4 \
+ ssl3 \
))
ifneq ($(SYSTEM_POSTGRESQL),YES)
ifneq ($(OS)$(COM),WNTMSC)
--include $(OUTDIR)/inc/postgresql/libpq-flags.mk
-
$(eval $(call gb_Library_add_libs,postgresql-sdbc-impl,\
- $(if $(filter-out MACOSX,$(OS)),-Wl$(COMMA)--as-needed) \
- $(LIBPQ_DEP_LIBS) \
+ $(if $(filter YES,$(WITH_GSSAPI)),$(GSSAPI_LIBS)) \
+ $(if $(filter YES,$(WITH_KRB5)),$(KRB5_LIBS)) \
$(if $(filter-out MACOSX,$(OS)),-ldl) \
- $(if $(filter-out MACOSX,$(OS)),-Wl$(COMMA)--no-as-needed) \
+ $(if $(filter-out MACOSX,$(OS)),-lpthread) \
))
endif