diff options
author | jlam <jlam@pkgsrc.org> | 2002-10-09 10:24:34 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-10-09 10:24:34 +0000 |
commit | 8ee3d01d39f93227036600f6b9818c7b0e744637 (patch) | |
tree | c2aa00179d5bcb274570b5a595b5968d6a9fe46f /mk | |
parent | 420ead485fedb928792a18eb2a9d4f8ecb3193e6 (diff) | |
download | pkgsrc-8ee3d01d39f93227036600f6b9818c7b0e744637.tar.gz |
Allow BUILDLINK_ENV to override shell environment settings in
${CONFIGURE_ENV} and in ${MAKE_ENV} for the configure and build processes,
respectively. This allows overriding the value of "CC" passed to the
build, e.g.:
BUILDLINK_ENV+= CC="/usr/pkg/pthread/bin/pgcc"
Diffstat (limited to 'mk')
-rw-r--r-- | mk/buildlink2/bsd.buildlink2.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/buildlink2/bsd.buildlink2.mk b/mk/buildlink2/bsd.buildlink2.mk index 163a5b21a2c..da1cac8f695 100644 --- a/mk/buildlink2/bsd.buildlink2.mk +++ b/mk/buildlink2/bsd.buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink2.mk,v 1.36 2002/10/08 01:06:33 jlam Exp $ +# $NetBSD: bsd.buildlink2.mk,v 1.37 2002/10/09 10:24:34 jlam Exp $ # # An example package buildlink2.mk file: # @@ -745,6 +745,13 @@ ${_alias_}: ${BUILDLINK_${_wrappee_}} . endfor # _alias_ .endfor # _wrappee_ +# Allow BUILDLINK_ENV to override shell environment settings in +# ${CONFIGURE_ENV} and in ${MAKE_ENV} for the configure and build processes, +# respectively. +# +CONFIGURE_ENV+= ${BUILDLINK_ENV} +MAKE_ENV+= ${BUILDLINK_ENV} + # OS-specific overrides for buildlink2 wrappers # _BLNK_WRAPPEES.SunOS?= CC CXX |