Fix rescue build using -j. The problem appears to be make not being able

to find the source when the object was specified as <directory>/foo.o.

The fix makes the build go through a make objs before compiling the rest
of the crunchgen. This ensures that the dhclient bits are built in the
correct place where they are picked up for the final compile of rescue.

I'd like to thank dwhite@ and gad@ for helping me track down the problem.

Fast testing box provided by:	phk@ (thanks)
This commit is contained in:
Gordon Tetlow 2003-07-24 07:42:42 +00:00
parent c8baa23e56
commit 44dde923fc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117956

View File

@ -246,14 +246,15 @@ $(CONF): Makefile
.endfor
.ORDER: $(OUTPUTS) objs
$(OUTPUTS): $(CONF)
MAKEOBJDIRPREFIX=${CRUNCHOBJS} crunchgen -q -m $(OUTMK) -c $(OUTC) \
$(CONF)
$(PROG): $(OUTPUTS)
$(PROG): $(OUTPUTS) objs
MAKEOBJDIRPREFIX=${CRUNCHOBJS} make -f $(OUTMK)
objs:
objs: $(OUTMK)
MAKEOBJDIRPREFIX=${CRUNCHOBJS} make -f $(OUTMK) objs
# <sigh> Someone should replace the bin/csh and bin/sh build-tools with