tcp-wrappers: fix parallel builds

Inparallel builds make can try to rebuild a object file while cflags
file is not yet built. Fix that by providing an explicit cflags
dependency on config-check.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
lumag
2011-09-04 02:26:18 +00:00
committed by Koen Kooi
parent c434bc4f65
commit 23de2d1dd4
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,18 @@
Upstream-Status: Pending
Fix builds failing as there is no direct rule to rebuild cflags
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Index: tcp_wrappers_7.6/Makefile
===================================================================
--- tcp_wrappers_7.6.orig/Makefile 2011-09-02 03:34:07.000000000 +0400
+++ tcp_wrappers_7.6/Makefile 2011-09-02 03:34:19.000000000 +0400
@@ -732,6 +732,7 @@
# Invalidate all object files when the compiler options (CFLAGS) have changed.
+cflags: config-check
config-check:
@set +e; test -n "$(REAL_DAEMON_DIR)" || { make; exit 1; }
@set +e; echo $(CFLAGS) >cflags.new ; \
@@ -29,6 +29,7 @@ SRC_URI = "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_${PV}.tar.gz \
file://size_t.patch \ file://size_t.patch \
file://tcpdchk_libwrapped.patch \ file://tcpdchk_libwrapped.patch \
file://ldflags.patch \ file://ldflags.patch \
file://fix-cflags-dep.patch \
\ \
file://try-from.8 \ file://try-from.8 \
file://safe_finger.8" file://safe_finger.8"