From 1f741dfeeab848424b91420390d2853572056e00 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Thu, 2 Feb 2012 18:37:49 +0100 Subject: [PATCH] pgsql-sdbc: put libs libpq needs *before* libpq in the link line --- connectivity/source/drivers/postgresql/makefile.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/connectivity/source/drivers/postgresql/makefile.mk b/connectivity/source/drivers/postgresql/makefile.mk index 3900d21d1fc7..8a831a6f20eb 100644 --- a/connectivity/source/drivers/postgresql/makefile.mk +++ b/connectivity/source/drivers/postgresql/makefile.mk @@ -88,14 +88,13 @@ LIBPQ_DEP_LIBS += \ LIBPQ_DEP_LIBS+=\ $(LDAPSDKLIB) .ENDIF -.ELSE +.ELSE # "$(GUI)$(COM)"!="WNTMSC" LIBPQ_LINK=$(OUTDIR)/lib/libpq.a LIBPQ_DEP_LIBS+=$(eq,$(OS),MACOSX $(NULL) -Wl,--as-needed) .INCLUDE : $(OUTDIR_FOR_BUILD)/inc/postgresql/libpq-flags.mk LIBPQ_DEP_LIBS+=$(eq,$(OS),MACOSX $(NULL) -Wl,--no-as-needed) .ENDIF POSTGRESQL_INC=-I$(OUTDIR)/inc/postgresql -POSTGRESQL_LIB= .ENDIF # SYSTEM_POSTGRESQL CFLAGS+=$(POSTGRESQL_INC) \ @@ -161,8 +160,8 @@ SHL2STDLIBS= \ $(SALLIB) \ $(SALHELPERLIB) \ $(POSTGRESQL_LIB) \ - $(LIBPQ_LINK) \ - $(LIBPQ_DEP_LIBS) + $(LIBPQ_DEP_LIBS) \ + $(LIBPQ_LINK) SHL2LIBS= $(LIB2TARGET) SHL2DEF= $(MISC)/$(SHL2TARGET).def