mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
ecpg: Don't link compatlib with libpq
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
This commit is contained in:
parent
203d8ae2db
commit
3780fc679c
@ -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)
|
-I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
|
||||||
override CFLAGS += $(PTHREAD_CFLAGS)
|
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)
|
$(filter -lintl -lm, $(LIBS)) $(PTHREAD_LIBS)
|
||||||
SHLIB_PREREQS = submake-ecpglib submake-pgtypeslib
|
SHLIB_PREREQS = submake-ecpglib submake-pgtypeslib
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user