summaryrefslogtreecommitdiff
path: root/databases/postgresql-server
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-06-11 02:05:07 +0000
committerjlam <jlam@pkgsrc.org>2001-06-11 02:05:07 +0000
commitdbfde59b14f3df33f921b522c83796d99919502c (patch)
tree8a4903fb4961ac3e5118ca00c446b0bcfea9697d /databases/postgresql-server
parent072be2ad69b44757c1fda013ef9c97ac9969c501 (diff)
downloadpkgsrc-dbfde59b14f3df33f921b522c83796d99919502c.tar.gz
The buildlink include and lib directories are added to CFLAGS, CPPFLAGS,
CXXFLAGS, and LDFLAGS by the buildlink.mk files so remove the extra definitions to add them from the package Makefiles. As advised by the bsd.buildlink.mk file, also ensure that the buildlink.mk files are included prior to defining any package-specific CFLAGS/LDFLAGS to ensure that the buildlink directories are at the head of the compiler search paths.
Diffstat (limited to 'databases/postgresql-server')
-rw-r--r--databases/postgresql-server/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/databases/postgresql-server/Makefile b/databases/postgresql-server/Makefile
index 37d140edb74..c267ca1753e 100644
--- a/databases/postgresql-server/Makefile
+++ b/databases/postgresql-server/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2001/06/10 00:08:42 jlam Exp $
+# $NetBSD: Makefile,v 1.8 2001/06/11 02:05:09 jlam Exp $
.include "../../databases/postgresql/Makefile.common"
.include "../../databases/postgresql/Makefile.ssl"
@@ -15,6 +15,13 @@ NOT_FOR_PLATFORM= *-*-mips
DIRS_TO_BUILD= src/backend
+# The following is a hack to force ${BUILDLINK_DIR}/lib 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${BUILDLINK_DIR}/lib
+
# PGUSER username of the database administrator
# PGGROUP group of the database administrator
# PGHOME home directory of the database administrator and location of