On 17.12.2018 14:47, Konstantin Khlebnikov wrote:
tools/perf/Makefile conflicts with option '-j'.
The rest options must be passed as is.
Signed-off-by: Konstantin Khlebnikov <[email protected]>
---
tools/perf/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 7902a5681fc8..989c3d2f847b 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -16,7 +16,7 @@
#
# We don't want to pass along options like -j:
#
-unexport MAKEFLAGS
+MAKEFLAGS := $(filter --j% -j,$(MAKEFLAGS))
#
# Do a parallel build with multiple jobs, based on the number of CPUs online
Oops, this breaks static build because if LDFLAGS=-static is in command line
then
all assignments in makefile are ignored while Makefile.config have a lot of
that.