From addb192d8fcdcd54b4105d5561d5f91f54029a65 Mon Sep 17 00:00:00 2001 From: pancake Date: Fri, 28 Feb 2014 02:44:07 +0100 Subject: [PATCH] Fix race condition in Makefile --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bd6cf516..f443c469 100644 --- a/Makefile +++ b/Makefile @@ -141,9 +141,11 @@ all: $(LIBRARY) $(ARCHIVE) $(PKGCFGF) $(MAKE) -C tests $(INSTALL_DATA) lib$(LIBNAME).$(EXT) tests -$(LIBRARY): diet $(LIBOBJ) +$(LIBRARY): $(LIBOBJ) $(CC) $(LDFLAGS) $(LIBOBJ) -o $(LIBRARY) +$(LIBOBJ): diet + # generate include/diet.h diet: @echo "#ifndef CAPSTONE_DIET_H" > include/diet.h