summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2002-04-25 00:03:32 +0000
committerjlam <jlam>2002-04-25 00:03:32 +0000
commit00bfaa66eef14bf41f9d38d9e3cbda5998b8eec2 (patch)
treedb9a660a4a44fe9de47a1a729a3fb552f62c34a6 /mk
parent5e5313e90b4cc5be4784d99e91d0eb9cd52b36cf (diff)
downloadpkgsrc-00bfaa66eef14bf41f9d38d9e3cbda5998b8eec2.tar.gz
If we are using the config script wrappers, we prepend their location
to the PATH so we don't have to fix so many broken configure scripts and Makefiles that expect to find the *-config scripts in the PATH.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.buildlink.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/bsd.buildlink.mk b/mk/bsd.buildlink.mk
index e894657a749..2f10b00361e 100644
--- a/mk/bsd.buildlink.mk
+++ b/mk/bsd.buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink.mk,v 1.60 2002/03/20 14:18:00 jlam Exp $
+# $NetBSD: bsd.buildlink.mk,v 1.61 2002/04/25 00:03:32 jlam Exp $
#
# This Makefile fragment is included by package buildlink.mk files. This
# file does the following things:
@@ -210,6 +210,14 @@ _BUILDLINK_USE: .USE
USE_CONFIG_WRAPPER= # defined
.endif
+# If we are using the config script wrappers, we prepend their location
+# to the PATH so we don't have to fix so many broken configure scripts
+# and Makefiles that expect to find the *-config scripts in the PATH.
+#
+.if defined(USE_CONFIG_WRAPPER)
+PATH:= ${BUILDLINK_DIR}/bin:${PATH}
+.endif
+
BUILDLINK_CONFIG_WRAPPER_SED?= # empty
_BUILDLINK_CONFIG_WRAPPER_POST_SED+= \
-e "s|-I${LOCALBASE}/|-I${BUILDLINK_DIR}/|g" \