summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorgordon <gordon@FreeBSD.org>2003-07-24 07:42:42 +0000
committergordon <gordon@FreeBSD.org>2003-07-24 07:42:42 +0000
commit660b2e52a158376e51f7a60e15d689f67b7ed702 (patch)
treeafb8063bae52cf000a7b3fd40b1538396da6420a /rescue
parentff7ebb21b78e670173e40936db94922848426386 (diff)
downloadFreeBSD-src-660b2e52a158376e51f7a60e15d689f67b7ed702.zip
FreeBSD-src-660b2e52a158376e51f7a60e15d689f67b7ed702.tar.gz
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)
Diffstat (limited to 'rescue')
-rw-r--r--rescue/rescue/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile
index 5f532d3..d12c35c 100644
--- a/rescue/rescue/Makefile
+++ b/rescue/rescue/Makefile
@@ -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
OpenPOWER on IntegriCloud