From: patmans@us.ibm.com Date: Tue, 2 Dec 2003 07:50:09 +0000 (-0800) Subject: [PATCH] fix udev parallel builds with klibc X-Git-Tag: 008~29 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=871ea775c7f47776c34f4d33d7f40074e4e39d39;p=elogind.git [PATCH] fix udev parallel builds with klibc I can't build udev with make -j9. Here's a patch to fix it. --- diff --git a/Makefile b/Makefile index d0c00aa88..6c8b311f4 100644 --- a/Makefile +++ b/Makefile @@ -133,9 +133,13 @@ else LDFLAGS = --static endif -all: $(LIBC) $(ROOT) +all: $(ROOT) -$(ARCH_LIB_OBJS) : +$(ROOT): $(LIBC) + +$(ARCH_LIB_OBJS) : $(CRT0) + +$(CRT0): $(MAKE) -C klibc TDB = tdb/tdb.o \ @@ -171,8 +175,9 @@ udev_version.h: @echo \#define UDEV_CONFIG_DIR \"$(configdir)\" >> $@ @echo \#define UDEV_ROOT \"$(udevdir)\" >> $@ +$(OBJS): $(GEN_HEADERS) -$(ROOT): $(GEN_HEADERS) $(OBJS) +$(ROOT): $(OBJS) $(LD) $(LDFLAGS) -o $(ROOT) $(CRT0) $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS) $(STRIPCMD) $(ROOT)