aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2017-08-16 17:54:24 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2017-08-16 17:54:24 +0000
commit96dd05dd7d64527ecf61b7b39d8ef94e9f9f966a (patch)
treec2fdee2a6447e01751782ff1deec6fb302caaaf9 /Makefile
parent63cd05d97a6d280e280538229040537d5ac75788 (diff)
downloadsrc-96dd05dd7d64527ecf61b7b39d8ef94e9f9f966a.tar.gz
src-96dd05dd7d64527ecf61b7b39d8ef94e9f9f966a.zip
Quote ${MAKE} when passing in env in case it contains spaces.
Downstream we are wrapping MAKE with a limits(1) call which interferes with these non-quoted cases. Sponsored by: Dell EMC Isilon
Notes
Notes: svn path=/head/; revision=322585
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 985b5025e4b0..bce6edb33e10 100644
--- a/Makefile
+++ b/Makefile
@@ -221,7 +221,7 @@ SUB_MAKE= `test -x ${MYMAKE} && echo ${MYMAKE} || echo ${MAKE}` \
SUB_MAKE= ${MAKE} -m ${.CURDIR}/share/mk
.endif
-_MAKE= PATH=${PATH} MAKE_CMD=${MAKE} ${SUB_MAKE} -f Makefile.inc1 \
+_MAKE= PATH=${PATH} MAKE_CMD="${MAKE}" ${SUB_MAKE} -f Makefile.inc1 \
TARGET=${_TARGET} TARGET_ARCH=${_TARGET_ARCH}
# Only allow meta mode for the whitelisted targets. See META_TGT_WHITELIST