summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2015-01-05 17:03:35 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2015-01-05 17:03:35 +0000
commitd8dbd903d024f84a149dac2f8a674a68dfed47a3 (patch)
treed885c2fbb868ef4c8c70dfaa7a08f05f67350389
parent81c538efcebfce2ce4a1d3a420b6c885b8f08df9 (diff)
downloaddnsmasq-d8dbd903d024f84a149dac2f8a674a68dfed47a3.tar.gz
Fix race condition issue in makefile.
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5675f60..bcbd557 100644
--- a/Makefile
+++ b/Makefile
@@ -148,10 +148,12 @@ $(copts_conf): $(hdrs)
$(objs:.o=.c) $(hdrs):
ln -s $(top)/$(SRC)/$@ .
+$(objs): $(copts_conf) $(hdrs)
+
.c.o:
$(CC) $(CFLAGS) $(COPTS) $(i18n) $(build_cflags) $(RPM_OPT_FLAGS) -c $<
-dnsmasq : $(copts_conf) $(hdrs) $(objs)
+dnsmasq : $(objs)
$(CC) $(LDFLAGS) -o $@ $(objs) $(build_libs) $(LIBS)
dnsmasq.pot : $(objs:.o=.c) $(hdrs)