dnsmasq: fix parallel make failure
PATCH 1/1 dnsmasq: fix parallel make failure
From: Shrikant Bobade <[email protected]>
The dnsmasq target depends on .configured and $(objs). .configured does an rm -f *.o. Yet the only thing telling make to build the .configured target before the $(objs) target was the order of the dependencies of the dnsmasq target. We can't rely on that order when doing a paralllel make build, so add an explicit rule to enforce that order.
Signed-off-by Christopher Larson <[email protected]>
Signed-off-by Shrikant Bobade <[email protected]>
--- .../recipes-support/dnsmasq/dnsmasq.inc | 1 + .../dnsmasq/files/parallel-make.patch | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 meta-networking/recipes-support/dnsmasq/files/parallel-make.patch
meta-networking/recipes-support/dnsmasq/dnsmasq.inc +1 -0
@@ -11,6 +11,7 @@ SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/${@['archive/', ''][float(d.getV file://init \ file://dnsmasq.conf \ file://dnsmasq.service \ + file://parallel-make.patch \ " inherit update-rc.d systemd
meta-networking/recipes-support/dnsmasq/files/parallel-make.patch new file +18 -0
@@ -0,0 +1,18 @@ +The dnsmasq target depends on .configured and $(objs). .configured does an rm +-f *.o. Yet the only thing telling make to build the .configured target before +the $(objs) target was the order of the dependencies of the dnsmasq target. We +can't rely on that order when doing a paralllel make build, so add an explicit +rule to enforce that order. + +Signed-off-by: Christopher Larson <[email protected]> + +--- dnsmasq-2.68.orig/Makefile ++++ dnsmasq-2.68/Makefile +@@ -139,6 +139,8 @@ bloatcheck : $(BUILDDIR)/dnsmasq_baselin + @rm -f *.o + @touch $@ + ++$(objs): .configured ++ + $(objs:.o=.c) $(hdrs): + ln -s $(top)/$(SRC)/$@ .
Signature · 1 line
1.7.9.5