diff options
author | jlam <jlam@pkgsrc.org> | 2002-04-25 00:03:32 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-04-25 00:03:32 +0000 |
commit | 925b5d6f501738c5779fca38be5164dba3fc8706 (patch) | |
tree | db9a660a4a44fe9de47a1a729a3fb552f62c34a6 /mk | |
parent | 873d4457621c7cab6bae741340b61ba038248fce (diff) | |
download | pkgsrc-925b5d6f501738c5779fca38be5164dba3fc8706.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.mk | 10 |
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" \ |