Skip to content

Commit c5b76ab

Browse files
captain5050acmel
authored andcommitted
tools build: Remove feature-libslang-include-subdir
Added in commit cbefd24 ("tools build: Add test to check if slang.h is in /usr/include/slang/") this feature was to fix build support on now unsupported versions of RHEL 5 and 6. As 6 years has passed let's remove the workaround. Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent a5099d8 commit c5b76ab

4 files changed

Lines changed: 2 additions & 22 deletions

File tree

tools/build/feature/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ FILES= \
3333
test-libperl.bin \
3434
test-libpython.bin \
3535
test-libslang.bin \
36-
test-libslang-include-subdir.bin \
3736
test-libtraceevent.bin \
3837
test-libcpupower.bin \
3938
test-libtracefs.bin \
@@ -230,9 +229,6 @@ $(OUTPUT)test-libunwind-debug-frame-aarch64.bin:
230229
$(OUTPUT)test-libslang.bin:
231230
$(BUILD) -lslang
232231

233-
$(OUTPUT)test-libslang-include-subdir.bin:
234-
$(BUILD) -lslang
235-
236232
$(OUTPUT)test-libtraceevent.bin:
237233
$(BUILD) -ltraceevent
238234

tools/build/feature/test-libslang-include-subdir.c

Lines changed: 0 additions & 7 deletions
This file was deleted.

tools/perf/Makefile.config

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -780,15 +780,10 @@ endif
780780

781781
ifndef NO_SLANG
782782
ifneq ($(feature-libslang), 1)
783-
ifneq ($(feature-libslang-include-subdir), 1)
784-
$(warning slang not found, disables TUI support. Please install slang-devel, libslang-dev or libslang2-dev)
785-
NO_SLANG := 1
786-
else
787-
CFLAGS += -DHAVE_SLANG_INCLUDE_SUBDIR
788-
endif
783+
$(warning slang not found, disables TUI support. Please install slang-devel, libslang-dev or libslang2-dev)
784+
NO_SLANG := 1
789785
endif
790786
ifndef NO_SLANG
791-
# Fedora has /usr/include/slang/slang.h, but ubuntu /usr/include/slang.h
792787
CFLAGS += -DHAVE_SLANG_SUPPORT
793788
EXTLIBS += -lslang
794789
$(call detected,CONFIG_SLANG)

tools/perf/ui/libslang.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
#define ENABLE_SLFUTURE_CONST 1
1616
#define ENABLE_SLFUTURE_VOID 1
1717

18-
#ifdef HAVE_SLANG_INCLUDE_SUBDIR
19-
#include <slang/slang.h>
20-
#else
2118
#include <slang.h>
22-
#endif
2319

2420
#define SL_KEY_UNTAB 0x1000
2521

0 commit comments

Comments
 (0)