aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2015-10-12 22:09:47 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2015-10-12 22:09:47 +0000
commit4ad83bd568ec54130058e627decfddf4685db772 (patch)
tree43baeabeebee8e2b60aaf43371b4234bd3df8b82 /Mk/bsd.port.mk
parent19f179cf3b1808ad338b4776943f5fda53f072d6 (diff)
downloadports-4ad83bd568ec54130058e627decfddf4685db772.tar.gz
ports-4ad83bd568ec54130058e627decfddf4685db772.zip
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 74363b1af575..2fa1c355ad73 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -5051,11 +5051,12 @@ ${_t}:
.if !defined(NOPRECIOUSMAKEVARS)
# These won't change, so we can pass them through the environment
-.MAKEFLAGS: \
- ARCH=${ARCH:Q} \
- OPSYS=${OPSYS:Q} \
- OSREL=${OSREL:Q} \
- OSVERSION=${OSVERSION:Q}
+_EXPORTED_VARS= ARCH OPSYS OPREL OSVERSION
+.for var in ${_EXPORTED_VARS}
+.if empty(.MAKEFLAGS:M${var}=*)
+.MAKEFLAGS: ${var}=${${var}:Q}
+.endif
+.endfor
.endif
.if !target(pre-check-config)