Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3780fc6

Browse files
committed
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
1 parent 203d8ae commit 3780fc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/ecpg/compatlib/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
2121
-I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
2222
override CFLAGS += $(PTHREAD_CFLAGS)
2323

24-
SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes $(libpq) \
24+
SHLIB_LINK = -L../ecpglib -lecpg -L../pgtypeslib -lpgtypes \
2525
$(filter -lintl -lm, $(LIBS)) $(PTHREAD_LIBS)
2626
SHLIB_PREREQS = submake-ecpglib submake-pgtypeslib
2727

0 commit comments

Comments
 (0)