Index: src/Makefile.global.in =================================================================== RCS file: /cvsroot/pgsql/src/Makefile.global.in,v retrieving revision 1.211 diff -c -c -r1.211 Makefile.global.in *** src/Makefile.global.in 24 Mar 2005 23:53:48 -0000 1.211 --- src/Makefile.global.in 25 Mar 2005 02:51:45 -0000 *************** *** 306,313 **** libpq_builddir = $(top_builddir)/src/interfaces/libpq endif ! libpq = -L$(libpq_builddir) -lpq # If doing static linking, shared library dependency can't be # used so we specify pthread libs for every usage of libpq ifeq ($(enable_shared), no) --- 306,327 ---- libpq_builddir = $(top_builddir)/src/interfaces/libpq endif ! # Force clients to pull symbols from the non-shared library libpgport ! # rather than pulling some libpgport symbols from libpq just because ! # libpq uses those functions too. This makes applications less ! # dependent on changes in libpq's usage of pgport. To do this we link to ! # pgport before libpq. This does cause duplicate -lpgport's to appear ! # on client link lines. ! ifdef PGXS ! libpq = -L$(libdir) -lpgport -L$(libpq_builddir) -lpq ! else ! libpq = -L$(top_builddir)/src/port -lpgport -L$(libpq_builddir) -lpq ! endif + # This is for use for libraries linking to libpq. Because libpqport + # isn't created with the same link flags as libpq, it can't be used. + libpq_libonly = -L$(libpq_builddir) -lpq + # If doing static linking, shared library dependency can't be # used so we specify pthread libs for every usage of libpq ifeq ($(enable_shared), no) Index: src/interfaces/ecpg/compatlib/Makefile =================================================================== RCS file: /cvsroot/pgsql/src/interfaces/ecpg/compatlib/Makefile,v retrieving revision 1.21 diff -c -c -r1.21 Makefile *** src/interfaces/ecpg/compatlib/Makefile 14 Mar 2005 17:27:49 -0000 1.21 --- src/interfaces/ecpg/compatlib/Makefile 25 Mar 2005 02:51:48 -0000 *************** *** 20,26 **** override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) \ -I$(top_srcdir)/src/include/utils $(CPPFLAGS) override CFLAGS += $(PTHREAD_CFLAGS) ! SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) \ $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(PTHREAD_LIBS) OBJS= informix.o --- 20,26 ---- override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(libpq_srcdir) \ -I$(top_srcdir)/src/include/utils $(CPPFLAGS) override CFLAGS += $(PTHREAD_CFLAGS) ! SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq_libonly) \ $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(PTHREAD_LIBS) OBJS= informix.o Index: src/interfaces/ecpg/ecpglib/Makefile =================================================================== RCS file: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/Makefile,v retrieving revision 1.33 diff -c -c -r1.33 Makefile *** src/interfaces/ecpg/ecpglib/Makefile 14 Mar 2005 17:27:50 -0000 1.33 --- src/interfaces/ecpg/ecpglib/Makefile 25 Mar 2005 02:51:48 -0000 *************** *** 27,33 **** OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \ connect.o misc.o path.o exec.o ! SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) \ $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(PTHREAD_LIBS) ifeq ($(PORTNAME), win32) --- 27,33 ---- OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \ connect.o misc.o path.o exec.o ! SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq_libonly) \ $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(PTHREAD_LIBS) ifeq ($(PORTNAME), win32)