ecpg: Don't link compatlib with libpq
authorPeter Eisentraut
Sun, 31 Mar 2013 20:51:00 +0000 (16:51 -0400)
committerPeter Eisentraut
Sun, 31 Mar 2013 20:51:00 +0000 (16:51 -0400)
It doesn't actually use libpq.  But we need to keep libpq in the
CPPFLAGS for building, because compatlib uses ecpglib.h which uses
libpq-fe.h, but we don't need to refer to libpq for linking.

reviewed by Tom Lane

src/interfaces/ecpg/compatlib/Makefile

index 00adcdb30e932cd1487fa2cc6cd9e5b2b0df00b3..4141e1e0130fe42dcb1ea5fe2b97bca2f95c0d0c 100644 (file)
@@ -21,7 +21,7 @@ override CPPFLAGS := -I../include -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) \
+SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes \
    $(filter -lintl -lm, $(LIBS)) $(PTHREAD_LIBS)
 SHLIB_PREREQS = submake-ecpglib submake-pgtypeslib