Blame SOURCES/0001-fix-parallel-build-of-btt-and-blkiomon.patch

f31040
From f4f8ef7cdea138cfaa2f3ca0ee31fa23d3bcf1cc Mon Sep 17 00:00:00 2001
f31040
From: Gwendal Grignou <gwendal@chromium.org>
f31040
Date: Thu, 16 Jan 2020 12:33:26 -0800
f31040
Subject: [PATCH] fix parallel build of btt and blkiomon
f31040
f31040
rbtree.c is used by both binaries. It is possible that when make -C btt
f31040
is invoked rbtree.o does not exist yet, but is already schedule by the
f31040
compilation of blkiomon. That could result in recompiling rbtree.o again
f31040
for btt/btt.
f31040
In that case, at install time, make will recompile blkiomon which can
f31040
fail in gentoo, because CC variable is not overriden by ebuild script at
f31040
install time. (see https://bugs.gentoo.org/705594)
f31040
f31040
Add a dependency on SUBDIRS to wait for all binary in . to be compiled.
f31040
It will guarante rbtree.o exists.
f31040
f31040
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
f31040
Signed-off-by: Jens Axboe <axboe@kernel.dk>
f31040
---
f31040
 Makefile | 2 +-
f31040
 1 file changed, 1 insertion(+), 1 deletion(-)
f31040
f31040
diff --git a/Makefile b/Makefile
f31040
index 5917814..eb3c6a1 100644
f31040
--- a/Makefile
f31040
+++ b/Makefile
f31040
@@ -14,7 +14,7 @@ all: $(ALL) $(SUBDIRS)
f31040
 
f31040
 # We always descend into subdirs because they contain their own dependency
f31040
 # information which we don't track in this top level Makefile.
f31040
-$(SUBDIRS):
f31040
+$(SUBDIRS): $(PROGS)
f31040
 	$(MAKE) -C $@
f31040
 .PHONY: $(SUBDIRS)
f31040
 
f31040
-- 
f31040
2.25.3
f31040