summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2007-11-24 15:47:23 +0000
committerespie <espie@openbsd.org>2007-11-24 15:47:23 +0000
commitd420f2050419e8222dbb1c237cf32f5c2d2df868 (patch)
tree682c308e2fef04c3c11084b2051df6b00db6ef7c
parentparallel make fixes: $(YDR) produces several files, we need a timestamp. (diff)
downloadwireguard-openbsd-d420f2050419e8222dbb1c237cf32f5c2d2df868.tar.xz
wireguard-openbsd-d420f2050419e8222dbb1c237cf32f5c2d2df868.zip
fix race condition, as reported by naddy@.
On a sufficiently fast machine, the subdirs and the ${TARGETS} will be run simultaneously, and will fail. Since TARGETS can be empty, we need an extra dummy-target to make sure make does something sensible (this avoids bsd-specific constructs).
-rw-r--r--usr.sbin/bind/make/rules.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/bind/make/rules.in b/usr.sbin/bind/make/rules.in
index 2db8442d47a..09f5b9da2b8 100644
--- a/usr.sbin/bind/make/rules.in
+++ b/usr.sbin/bind/make/rules.in
@@ -47,7 +47,12 @@ top_builddir = @BIND9_TOP_BUILDDIR@
### Makefile may define:
### TARGETS
-all: subdirs ${TARGETS}
+all: subdirs
+ @exec ${MAKE} ${TARGETS} dummy-target
+
+dummy-target:
+
+.PHONY: dummy-target
###
### Subdirectories