aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJuergen Lock <nox@jelal.kn-bremen.de>2009-12-14 21:54:43 +0100
committerAurelien Jarno <aurelien@aurel32.net>2009-12-17 18:27:07 +0100
commitc1bb0dcef2d3a62c89cef81a0f1a0e5e97ef325b (patch)
tree3f3aafbf8ce0859171fd9368ba8d3e9e12bf6b1b /Makefile
parentd0af544555473e2cbac58903577e042ed5c50fa9 (diff)
Fix a make -j race
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 <nox@jelal.kn-bremen.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a662d96a8d..c1fa08cecd 100644
--- a/Makefile
+++ b/Makefile
@@ -70,7 +70,7 @@ $(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a
$(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))