aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2018-03-03 23:23:23 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2018-03-03 23:23:23 +0000
commit9d5beec1b99b9530acb080808cf9626b9d45b719 (patch)
treedfbfc6d22b1f7e0687a920ca6c0fdf66b5e5da0d /Makefile
parent743ab0187f34c35e66503281b7e189cfe86db33e (diff)
downloadsrc-9d5beec1b99b9530acb080808cf9626b9d45b719.tar.gz
src-9d5beec1b99b9530acb080808cf9626b9d45b719.zip
Don't read SRC_ENV_CONF for MAKEOBJDIRPREFIX guard.
This is mostly to allow using MAKEOBJDIRPREFIX in src-env.conf on stable where src.sys.obj.mk is not going to be MFC'd. It is still valid on head but effectively a NOP due to MAKEOBJDIRPREFIX being handled differently in src.sys.obj.mk. Reported by: eadler MFC after: 1 week Sponsored by: Dell EMC
Notes
Notes: svn path=/head/; revision=330364
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2fa324085384..2a1ebc9d81f2 100644
--- a/Makefile
+++ b/Makefile
@@ -195,11 +195,11 @@ PATH= /sbin:/bin:/usr/sbin:/usr/bin
MAKEOBJDIRPREFIX?= /usr/obj
_MAKEOBJDIRPREFIX!= /usr/bin/env -i PATH=${PATH} ${MAKE} MK_AUTO_OBJ=no \
${.MAKEFLAGS:MMAKEOBJDIRPREFIX=*} __MAKE_CONF=${__MAKE_CONF} \
- SRCCONF=${SRCCONF} \
+ SRCCONF=${SRCCONF} SRC_ENV_CONF= \
-f /dev/null -V MAKEOBJDIRPREFIX dummy
.if !empty(_MAKEOBJDIRPREFIX)
-.error MAKEOBJDIRPREFIX can only be set in environment, not as a global\
- (in make.conf(5) or src.conf(5)) or command-line variable.
+.error MAKEOBJDIRPREFIX can only be set in environment or src-env.conf(5),\
+ not as a global (in make.conf(5) or src.conf(5)) or command-line variable.
.endif
# We often need to use the tree's version of make to build it.