]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools build: Remove leftover libcap tests that prevents fast path feature detection...
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 28 Aug 2024 22:06:47 +0000 (19:06 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 28 Aug 2024 22:11:36 +0000 (19:11 -0300)
commit47b3b6435e4bfb61ae8ffc63a11bd3c310f69acf
treea1ae3218cafcd7f3f103d61438995a9be8a0af19
parentd56a4d56a25c6aa76d816f1ee1888d38cf654004
tools build: Remove leftover libcap tests that prevents fast path feature detection from working

I noticed that the fast path feature detection was failing:

  $ cat /tmp/build/perf-tools-next/feature/test-all.make.output
  /usr/bin/ld: cannot find -lcap: No such file or directory
  collect2: error: ld returned 1 exit status
  $

The patch removing the dependency (Fixes tag below) didn't remove the
detection of libcap, and as the fast path feature detection (test-all.c)
had -lcap in its Makefile link list of libraries to link, it was failing
when libcap-devel is not available, fix it by removing those leftover
files.

Fixes: e25ebda78e230283 ("perf cap: Tidy up and improve capability testing")
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/Zs-gjOGFWtAvIZit@x1
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/build/feature/Makefile
tools/build/feature/test-libcap.c [deleted file]