diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-05-26 23:20:36 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-05-26 23:20:36 +0000 |
commit | 42b3be843e7c173661cc557fef9ae2833eb80d5d (patch) | |
tree | f4cef5e981b122cb9a01b3f4f8fe5632516f8c4a /Makefile.inc1 | |
parent | 5c4796780865ff87db878e12919293da29243b7f (diff) | |
download | FreeBSD-src-42b3be843e7c173661cc557fef9ae2833eb80d5d.zip FreeBSD-src-42b3be843e7c173661cc557fef9ae2833eb80d5d.tar.gz |
WITH_AUTO_OBJ: Fix crunchgen builds.
Passing MAKEOBJDIRPREFIX to the main prog build (rescue) would confuse
WITH_AUTO_OBJ and cause it to create a recursed object directory that
then broke the actual prog build. This is normally not a problem since
we do not call 'make -f prog.mk obj' before building anything in it.
Crunchgen(1) also assumes that if -o is not passed then if an object
directory does not already exist then it should build in the source
directories. The normal buildworld process will have already ran 'make
obj' in each of the component directories so this is not a problem.
With WITH_AUTO_OBJ though this is not the case. So we must tell
crunchgen(1) that MK_AUTO_OBJ=yes will create the directory and to not
require it be present before generating its Makefile.
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index 2a32e36..f6b4579 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1570,9 +1570,15 @@ _dd= bin/dd # r277259 crunchide: Correct 64-bit section header offset # r281674 crunchide: always include both 32- and 64-bit ELF support -# r285986 crunchen: use STRIPBIN rather than STRIP .if ${BOOTSTRAPPING} < 1100078 -_crunch= usr.sbin/crunch +_crunchide= usr.sbin/crunch/crunchide +.endif + +# r285986 crunchen: use STRIPBIN rather than STRIP +# 1100113: Support MK_AUTO_OBJ +.if ${BOOTSTRAPPING} < 1100078 || \ + (${MK_AUTO_OBJ} == "yes" && ${BOOTSTRAPPING} < 1100114) +_crunchgen= usr.sbin/crunch/crunchgen .endif .if ${BOOTSTRAPPING} >= 900040 && ${BOOTSTRAPPING} < 900041 @@ -1661,7 +1667,8 @@ bootstrap-tools: .PHONY usr.bin/xinstall \ ${_gensnmptree} \ usr.sbin/config \ - ${_crunch} \ + ${_crunchide} \ + ${_crunchgen} \ ${_nmtree} \ ${_vtfontcvt} \ usr.bin/localedef |