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

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