summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-11-14 22:25:05 +0000
committerjlam <jlam@pkgsrc.org>2002-11-14 22:25:05 +0000
commitd7538956f0215a16e615af9e2c2c7ea09592f2ee (patch)
treedf451c3b3e720691504d513efa5228935208173f /mk
parent967d7258762467f4a6c5bdb77d5f98ca75053edc (diff)
downloadpkgsrc-d7538956f0215a16e615af9e2c2c7ea09592f2ee.tar.gz
Allow BUILDLINK_SETENV.<wrappee> to override _BLNK_WRAP_SETENV.<wrappee>.
This is to override the default CC=cc, CXX=c++, LD=ld, etc. settings in CONFIGURE_ENV and MAKE_ENV, e.g.: BUILDLINK_SETENV.CC= CC=gcc
Diffstat (limited to 'mk')
-rw-r--r--mk/buildlink2/bsd.buildlink2.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/buildlink2/bsd.buildlink2.mk b/mk/buildlink2/bsd.buildlink2.mk
index 349df6e42b3..7a323a879ef 100644
--- a/mk/buildlink2/bsd.buildlink2.mk
+++ b/mk/buildlink2/bsd.buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink2.mk,v 1.48 2002/10/31 22:14:08 jlam Exp $
+# $NetBSD: bsd.buildlink2.mk,v 1.49 2002/11/14 22:25:05 jlam Exp $
#
# An example package buildlink2.mk file:
#
@@ -572,6 +572,13 @@ _BLNK_WRAP_LT_UNTRANSFORM_SED= ${_REPLACE_BUILDLINK_SED}
# The ld wrapper script accepts "-Wl,*" arguments.
_BLNK_WRAP_SPECIFIC_LOGIC.LD= ${BUILDLINK_DIR}/bin/.ld-logic
+# Allow BUILDLINK_SETENV.<wrappee> to override _BLNK_WRAP_SETENV.<wrappee>.
+.for _wrappee_ in ${_BLNK_WRAPPEES}
+. if defined(BUILDLINK_SETENV.${_wrappee_})
+_BLNK_WRAP_SETENV.${_wrappee_}= ${BUILDLINK_SETENV.${_wrappee_}}
+. endif
+.endfor
+
# Don't transform the arguments for imake, which uses the C preprocessor
# to generate Makefiles, so that imake will find its config files.
#