summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
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" \