summaryrefslogtreecommitdiff
path: root/databases/postgresql/Makefile.common
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-05-16 05:28:55 +0000
committerjlam <jlam@pkgsrc.org>2001-05-16 05:28:55 +0000
commit421b1ef2f020b2b64b9a724658b170cae9cc0168 (patch)
tree0cabf54144e1bbc1a2935d2383264e5ccd850dda /databases/postgresql/Makefile.common
parent2b1572b5ee3ba6016f9d3c29fec0b3c088d85302 (diff)
downloadpkgsrc-421b1ef2f020b2b64b9a724658b170cae9cc0168.tar.gz
Adapt postgresql-client to use devel/readline/Makefile.readline instead
of the one in databases/postgresql. Remove the Makefile.readline in databases/postgresql as it's no longer used by any packages.
Diffstat (limited to 'databases/postgresql/Makefile.common')
-rw-r--r--databases/postgresql/Makefile.common12
1 files changed, 10 insertions, 2 deletions
diff --git a/databases/postgresql/Makefile.common b/databases/postgresql/Makefile.common
index 1cbd9814335..009668fc21e 100644
--- a/databases/postgresql/Makefile.common
+++ b/databases/postgresql/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.14 2001/05/15 15:59:22 jlam Exp $
+# $NetBSD: Makefile.common,v 1.15 2001/05/16 05:28:55 jlam Exp $
#
# This Makefile fragment is included by all PostgreSQL packages built from
# the main sources of the PostgreSQL distribution.
@@ -80,11 +80,19 @@ CONFIGURE_ENV+= LIBS="${LIBS}"
MAKE_ENV+= CUSTOM_COPT="${CFLAGS}"
WRKINCDIR= ${WRKDIR}/include
+WRKLIBDIR= ${WRKDIR}/lib
CPPFLAGS+= -I${WRKINCDIR}
CFLAGS+= -I${WRKINCDIR}
+LDFLAGS+= -L${WRKLIBDIR}
+
+# The following is a hack to force ${WRKLIBDIR} to the front of the linker's
+# library search path without having to patch a lot of Makefile. It works
+# because the PostgreSQL Makefiles invoke the linker with $(CFLAGS) as well.
+#
+CFLAGS+= -L${WRKLIBDIR}
post-extract:
- ${MKDIR} -p ${WRKINCDIR}
+ ${MKDIR} -p ${WRKINCDIR} ${WRKLIBDIR}
if [ -d ${WRKSRC}/src ]; then \
${RM} -f ${WRKSRC}/src/Makefile.custom; \
${CP} -f ${COMMON_FILESDIR}/Makefile.custom \