summaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorPeter Eisentraut2013-03-31 20:58:40 +0000
committerPeter Eisentraut2013-03-31 20:58:40 +0000
commit64f890905f3a5186bc4df980c8becfda5c39c2ea (patch)
tree45202e54e45a1bbb78fb9446c4b7f2682b4c6300 /src/interfaces
parent3780fc679cc428c1f211e1728c4281ca15e9746b (diff)
Add pkg-config files for libpq and ecpg libraries
This will hopefully be easier to use than pg_config for users who are already used to the pkg-config interface. It also works better for multi-arch installations. reviewed by Tom Lane
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/ecpg/compatlib/Makefile2
-rw-r--r--src/interfaces/ecpg/ecpglib/Makefile2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/compatlib/Makefile b/src/interfaces/ecpg/compatlib/Makefile
index 4141e1e0130..caa55e68161 100644
--- a/src/interfaces/ecpg/compatlib/Makefile
+++ b/src/interfaces/ecpg/compatlib/Makefile
@@ -32,6 +32,8 @@ LIBS := $(filter-out -lpgport, $(LIBS))
OBJS= informix.o $(filter snprintf.o, $(LIBOBJS))
+PKG_CONFIG_REQUIRES_PRIVATE = libecpg libpgtypes
+
all: all-lib
.PHONY: submake-ecpglib submake-pgtypeslib
diff --git a/src/interfaces/ecpg/ecpglib/Makefile b/src/interfaces/ecpg/ecpglib/Makefile
index 59d9caf71d6..90d4b3e283f 100644
--- a/src/interfaces/ecpg/ecpglib/Makefile
+++ b/src/interfaces/ecpg/ecpglib/Makefile
@@ -43,6 +43,8 @@ ifeq ($(PORTNAME), win32)
SHLIB_LINK += -lshfolder
endif
+PKG_CONFIG_REQUIRES_PRIVATE = libpq libpgtypes
+
all: all-lib
.PHONY: submake-pgtypeslib