|
Line 0
Link Here
|
| 0 |
- |
1 |
commit 817bd67f206b325f4494f1f86d970c2f76a3b794 |
|
|
2 |
Author: Gwendal Grignou <gwendal@chromium.org> |
| 3 |
Date: Thu Jan 16 12:12:57 2020 -0800 |
| 4 |
|
| 5 |
fix parallel build of btt and blkiomon |
| 6 |
|
| 7 |
rbtree.c is used by both binaries. It is possible that when make -C btt |
| 8 |
is invoked rbtree.o does not exist yet, but is already schedule by the |
| 9 |
compilation of blkiomon. That could result in recompiling rbtree.o again |
| 10 |
for btt/btt. |
| 11 |
In that case, at install time, make will recompile blkiomon which can |
| 12 |
fail in gentoo, because CC variable is not overriden by ebuild script at |
| 13 |
install time. (see https://bugs.gentoo.org/705594) |
| 14 |
|
| 15 |
Add a dependency on SUBDIRS to wait for all binary in . to be compiled. |
| 16 |
It will guarante rbtree.o exists. |
| 17 |
|
| 18 |
Signed-off-by: Gwendal Grignou <gwendal@chromium.org> |
| 19 |
|
| 20 |
diff --git a/Makefile b/Makefile |
| 21 |
index 5917814..eb3c6a1 100644 |
| 22 |
--- a/Makefile |
| 23 |
+++ b/Makefile |
| 24 |
@@ -14,7 +14,7 @@ all: $(ALL) $(SUBDIRS) |
| 25 |
|
| 26 |
# We always descend into subdirs because they contain their own dependency |
| 27 |
# information which we don't track in this top level Makefile. |
| 28 |
-$(SUBDIRS): |
| 29 |
+$(SUBDIRS): $(PROGS) |
| 30 |
$(MAKE) -C $@ |
| 31 |
.PHONY: $(SUBDIRS) |
| 32 |
|