tools features: Add feature test to check if libbfd has buildid support

[ Upstream commit e71e19a9ea70952a53d58a99971820ce6c1794a8 ]

Which is needed by the PE executable support, for instance.

Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Jacek Caban <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Remi Bernon <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Stable-dep-of: 7822a8913f4c ("perf build: Update build rule for generated files")
Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
Arnaldo Carvalho de Melo 2020-09-03 13:44:39 -03:00 • committed by Greg Kroah-Hartman
commit a12e9ba7f3
5 changed files with 25 additions and 0 deletions

View file

@ -775,6 +775,12 @@ else
$(call feature_check,disassembler-four-args)
endif
ifeq ($(feature-libbfd-buildid), 1)
CFLAGS += -DHAVE_LIBBFD_BUILDID_SUPPORT
else
msg := $(warning Old version of libbfd/binutils things like PE executable profiling will not be available);
endif
ifdef NO_DEMANGLE
CFLAGS += -DNO_DEMANGLE
else