qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH:] Fix a make -j race


From: Juergen Lock
Subject: [Qemu-devel] [PATCH:] Fix a make -j race
Date: Mon, 14 Dec 2009 21:54:43 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

Make libuser.a depend on $(GENERATED_HEADERS) too so make -j won't start
building it before the headers exist.  (There may be more bugs like this
but at least this makes (g)make -j4 started from scratch on a quadcore
now always complete here again.)

Signed-off-by: Juergen Lock <address@hidden>

--- a/Makefile
+++ b/Makefile
@@ -79,7 +79,7 @@ $(filter %-softmmu,$(SUBDIR_RULES)): lib
 
 $(filter %-user,$(SUBDIR_RULES)): libuser.a
 
-libuser.a:
+libuser.a: $(GENERATED_HEADERS)
        $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libuser V="$(V)" 
TARGET_DIR="libuser/" all,)
 
 ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]