Date: Mon, 12 Oct 2015 22:09:48 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r399155 - head/Mk Message-ID: <201510122209.t9CM9mih056217@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510122209.t9CM9mih056217>