]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
WITH_AUTO_OBJ: Fix crunchgen builds.
authorBryan Drewery <bdrewery@FreeBSD.org>
Thu, 26 May 2016 23:20:36 +0000 (23:20 +0000)
committerBryan Drewery <bdrewery@FreeBSD.org>
Thu, 26 May 2016 23:20:36 +0000 (23:20 +0000)
commiteb9b07bb777a881bebf027c3f77d8f2dd4026c29
treef4cef5e981b122cb9a01b3f4f8fe5632516f8c4a
parentb3d8f6770381d64f959c95305090955a3cbdfcd9
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
Makefile.inc1
share/mk/bsd.crunchgen.mk
sys/sys/param.h
usr.sbin/crunch/crunchgen/crunchgen.c