summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-10-18 17:47:31 +0000
committerru <ru@FreeBSD.org>2004-10-18 17:47:31 +0000
commitd7592a9bb71c5d4e974dc936db80faaa5291b5cd (patch)
treee8fe471d08a0478447515198867636a0dddcf7f9 /Makefile
parentf1a03580bb29d5c3ff4eb1101104a36de6d67ae3 (diff)
downloadFreeBSD-src-d7592a9bb71c5d4e974dc936db80faaa5291b5cd.zip
FreeBSD-src-d7592a9bb71c5d4e974dc936db80faaa5291b5cd.tar.gz
Fixed MAKEOBJDIRPREFIX variable type check in case the env(1)
binary is not in PATH, as is the case with installworld, etc.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ce78de4..366796a 100644
--- a/Makefile
+++ b/Makefile
@@ -85,7 +85,8 @@ TGTS+= ${BITGTS}
PATH= /sbin:/bin:/usr/sbin:/usr/bin
MAKEOBJDIRPREFIX?= /usr/obj
-_MAKEOBJDIRPREFIX!= env -i PATH=${PATH} MAKEFLAGS="${.MAKEFLAGS}" ${MAKE} \
+_MAKEOBJDIRPREFIX!= /usr/bin/env -i \
+ PATH=${PATH} MAKEFLAGS="${.MAKEFLAGS}" ${MAKE} \
-f /dev/null -V MAKEOBJDIRPREFIX dummy
.if !empty(_MAKEOBJDIRPREFIX)
.error MAKEOBJDIRPREFIX can only be set in environment, not as a global\
OpenPOWER on IntegriCloud