linux-stable/tools/build
Arnaldo Carvalho de Melo 5301047d8c tools build: Use $(shell ) instead of `` to get embedded libperl's ccopts
commit 541f695cbc upstream.

Just like its done for ldopts and for both in tools/perf/Makefile.config.

Using `` to initialize PERL_EMBED_CCOPTS somehow precludes using:

  $(filter-out SOMETHING_TO_FILTER,$(PERL_EMBED_CCOPTS))

And we need to do it to allow for building with versions of clang where
some gcc options selected by distros are not available.

Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # Debian/Selfmade LLVM-14 (x86-64)
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Fangrui Song <maskray@google.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Keeping <john@metanate.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Link: http://lore.kernel.org/lkml/YktYX2OnLtyobRYD@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-20 09:06:44 +02:00
..
Documentation
feature tools build: Use $(shell ) instead of `` to get embedded libperl's ccopts 2022-04-20 09:06:44 +02:00
tests
.gitignore
Build tools build: Make fixdep a hostprog 2016-10-03 11:40:35 -03:00
Build.include tools build: fix # escaping in .cmd files for future Make 2018-07-17 11:37:53 +02:00
Makefile tools: build: Use HOSTLDFLAGS with fixdep 2018-08-24 13:12:39 +02:00
Makefile.build tools build: Add tools tree support for 'make -s' 2018-02-25 11:05:52 +01:00
Makefile.feature tools build: Add feature detection for g++ 2016-10-05 19:59:35 -03:00
Makefile.include tools build: Make fixdep a hostprog 2016-10-03 11:40:35 -03:00
fixdep.c