diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2015-01-05 17:03:35 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2015-01-05 17:03:35 +0000 |
commit | d8dbd903d024f84a149dac2f8a674a68dfed47a3 (patch) | |
tree | d885c2fbb868ef4c8c70dfaa7a08f05f67350389 | |
parent | 81c538efcebfce2ce4a1d3a420b6c885b8f08df9 (diff) | |
download | dnsmasq-d8dbd903d024f84a149dac2f8a674a68dfed47a3.tar.gz |
Fix race condition issue in makefile.
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |