]> git.ipfire.org Git - people/ms/dnsmasq.git/commitdiff
Fix race condition issue in makefile.
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 5 Jan 2015 17:03:35 +0000 (17:03 +0000)
committerSimon Kelley <simon@thekelleys.org.uk>
Mon, 5 Jan 2015 17:03:35 +0000 (17:03 +0000)
Makefile

index 5675f60c2036a8005a5da4cabf571fd4317598ac..bcbd5571671d9395b613754dc2237b21f73c7217 100644 (file)
--- 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)