svn commit: r399155 - head/Mk
Bryan Drewery
bdrewery at FreeBSD.org
Mon Oct 12 22:09:49 UTC 2015
Author: bdrewery
Date: Mon Oct 12 22:09:47 2015
New Revision: 399155
URL: https://svnweb.freebsd.org/changeset/ports/399155
Log:
Use a loop to export vars.
This also fixes adding duplicates to .MAKEFLAGS with fmake, which was a
bug present before recent changes.
With hat: portmgr
Modified:
head/Mk/bsd.port.mk
Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk Mon Oct 12 21:41:43 2015 (r399154)
+++ head/Mk/bsd.port.mk Mon Oct 12 22:09:47 2015 (r399155)
@@ -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)
More information about the svn-ports-all
mailing list