Skip to content

Commit 1955c8c

Browse files
ffainelliacmel
authored andcommitted
perf tools: Don't hardcode host include path for libslang
Hardcoding /usr/include/slang is fundamentally incompatible with cross compilation and will lead to the inability for a cross-compiled environment to properly detect whether slang is available or not. If /usr/include/slang is necessary that is a distribution specific knowledge that could be solved with either a standard pkg-config .pc file (which slang has) or simply overriding CFLAGS accordingly, but the default perf Makefile should be clean of all of that. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Alexey Budankov <alexey.budankov@linux.intel.com> Cc: bcm-kernel-feedback-list@broadcom.com Cc: Jakub Kicinski <jakub.kicinski@netronome.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Quentin Monnet <quentin.monnet@netronome.com> Cc: Stanislav Fomichev <sdf@google.com> Fixes: ef7b93a ("perf report: Librarize the annotation code and use it in the newt browser") Link: http://lkml.kernel.org/r/20190614183949.5588-1-f.fainelli@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent fdbdd7e commit 1955c8c

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎tools/build/feature/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ $(OUTPUT)test-libaudit.bin:
182182
$(BUILD) -laudit
183183

184184
$(OUTPUT)test-libslang.bin:
185-
$(BUILD) -I/usr/include/slang -lslang
185+
$(BUILD) -lslang
186186

187187
$(OUTPUT)test-libcrypto.bin:
188188
$(BUILD) -lcrypto

‎tools/perf/Makefile.config‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,6 @@ ifndef NO_SLANG
648648
NO_SLANG := 1
649649
else
650650
# Fedora has /usr/include/slang/slang.h, but ubuntu /usr/include/slang.h
651-
CFLAGS += -I/usr/include/slang
652651
CFLAGS += -DHAVE_SLANG_SUPPORT
653652
EXTLIBS += -lslang
654653
$(call detected,CONFIG_SLANG)

0 commit comments

Comments
 (0)