summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2011-12-12 23:07:03 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2011-12-12 23:07:20 +0100
commite984a1627ed205423167066e78943f783b8e87e4 (patch)
treeb1cf387a4f0a171118b5592aaf4887dc349fad35 /connectivity
parenta94660eaaad9b662812fe0d3aee7179cf41c0ad9 (diff)
postgresql-sdbc: do not use GNU ld-specific options on MacOS X
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/postgresql/makefile.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/connectivity/source/drivers/postgresql/makefile.mk b/connectivity/source/drivers/postgresql/makefile.mk
index 7506efd1045b..3f9bfb5d1d89 100644
--- a/connectivity/source/drivers/postgresql/makefile.mk
+++ b/connectivity/source/drivers/postgresql/makefile.mk
@@ -91,10 +91,17 @@ LIBPQ_DEP_LIBS+=\
.ENDIF
.ELSE
LIBPQ_LINK=$(OUTDIR)/lib/libpq.a
+.IF "$(GUI)"=="MAC"
+LIBPQ_DEP_LIBS += -Wl,-dead_strip_dylibs
+.ELSE
LIBPQ_DEP_LIBS += -Wl,--as-needed
+.ENDIF
.INCLUDE : $(OUTDIR_FOR_BUILD)/inc/postgresql/libpq-flags.mk
+.IF "$(GUI)"=="MAC"
+.ELSE
LIBPQ_DEP_LIBS += -Wl,--no-as-needed
.ENDIF
+.ENDIF
POSTGRESQL_INC=-I$(OUTDIR)/inc/postgresql
POSTGRESQL_LIB=
.ENDIF # SYSTEM_POSTGRESQL