Commit d8dbd903 authored by Yousong Zhou's avatar Yousong Zhou Committed by Simon Kelley

Fix race condition issue in makefile.

parent 81c538ef
...@@ -148,10 +148,12 @@ $(copts_conf): $(hdrs) ...@@ -148,10 +148,12 @@ $(copts_conf): $(hdrs)
$(objs:.o=.c) $(hdrs): $(objs:.o=.c) $(hdrs):
ln -s $(top)/$(SRC)/$@ . ln -s $(top)/$(SRC)/$@ .
$(objs): $(copts_conf) $(hdrs)
.c.o: .c.o:
$(CC) $(CFLAGS) $(COPTS) $(i18n) $(build_cflags) $(RPM_OPT_FLAGS) -c $< $(CC) $(CFLAGS) $(COPTS) $(i18n) $(build_cflags) $(RPM_OPT_FLAGS) -c $<
dnsmasq : $(copts_conf) $(hdrs) $(objs) dnsmasq : $(objs)
$(CC) $(LDFLAGS) -o $@ $(objs) $(build_libs) $(LIBS) $(CC) $(LDFLAGS) -o $@ $(objs) $(build_libs) $(LIBS)
dnsmasq.pot : $(objs:.o=.c) $(hdrs) dnsmasq.pot : $(objs:.o=.c) $(hdrs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment