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

Commit 962e825

Browse files
committed
Put back libpq link, but make sure that libpq's in-tree directory is
mentioned before the system directories.
1 parent 066926d commit 962e825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/ecpg/test/Makefile.regress

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ override CPPFLAGS := -I../../include -I$(top_srcdir)/src/interfaces/ecpg/include
22
-I$(libpq_srcdir) $(CPPFLAGS)
33
override CFLAGS += $(PTHREAD_CFLAGS)
44

5-
override LDFLAGS := -L../../ecpglib -L../../pgtypeslib $(LDFLAGS)
6-
override LIBS := -lecpg -lpgtypes $(LIBS) $(PTHREAD_LIBS)
5+
override LDFLAGS := -L../../ecpglib -L../../pgtypeslib $(filter-out -l%, $(libpq)) $(LDFLAGS)
6+
override LIBS := -lecpg -lpgtypes $(filter -l%, $(libpq)) $(LIBS) $(PTHREAD_LIBS)
77

88
ECPG = ../../preproc/ecpg --regression -I$(srcdir)/../../include
99

0 commit comments

Comments
 (0)