diff options
author | jlam <jlam@pkgsrc.org> | 2001-06-11 02:05:07 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-06-11 02:05:07 +0000 |
commit | dbfde59b14f3df33f921b522c83796d99919502c (patch) | |
tree | 8a4903fb4961ac3e5118ca00c446b0bcfea9697d /databases/postgresql-client | |
parent | 072be2ad69b44757c1fda013ef9c97ac9969c501 (diff) | |
download | pkgsrc-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-client')
-rw-r--r-- | databases/postgresql-client/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/databases/postgresql-client/Makefile b/databases/postgresql-client/Makefile index 2889e342105..47526ce239d 100644 --- a/databases/postgresql-client/Makefile +++ b/databases/postgresql-client/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2001/06/10 00:08:42 jlam Exp $ +# $NetBSD: Makefile,v 1.6 2001/06/11 02:05:08 jlam Exp $ .include "../../databases/postgresql/Makefile.common" .include "../../databases/postgresql/Makefile.ssl" @@ -16,6 +16,13 @@ CONFIGURE_ARGS+= --enable-readline DIRS_TO_BUILD= src/bin +# 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 + pre-build: cd ${WRKSRC}/src/bin/psql && \ ${RM} -f pqsignal.h && \ |