Skip to contentSkip to conversation

kbuild: List libelf-devel as an alternative

tip:perf/core tip-bot for Jean Delvare 1 participant 1 message Jun 22, 2016

Subsystems (2)
lore
Share & tools
lore

tip-bot for Jean Delvare

author merge bot
#0 lore raw
Commit-ID:  b573d8028ee6125b353861bd1869a004d9820603
Gitweb:     http://git.kernel.org/tip/b573d8028ee6125b353861bd1869a004d9820603
Author:     Jean Delvare <[email protected]>
AuthorDate: Thu, 16 Jun 2016 10:54:20 +0200
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 21 Jun 2016 13:18:32 -0300

kbuild: List libelf-devel as an alternative

On openSUSE, the libelf development files are in package libelf-devel.

---
 Makefile                   | 2 +-
 tools/perf/config/Makefile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Makefile +1 -1
index b409076..4a1fe88 100644
@@ -1038,7 +1038,7 @@ ifdef CONFIG_STACK_VALIDATION
   ifeq ($(has_libelf),1)
     objtool_target := tools/objtool FORCE
   else
-    $(warning "Cannot use CONFIG_STACK_VALIDATION, please install libelf-dev or elfutils-libelf-devel")
+    $(warning "Cannot use CONFIG_STACK_VALIDATION, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
     SKIP_STACK_VALIDATION := 1
     export SKIP_STACK_VALIDATION
   endif
tools/perf/config/Makefile +1 -1
index 80018fe..534c811 100644
@@ -257,7 +257,7 @@ else
       LIBC_SUPPORT := 1
     endif
     ifeq ($(LIBC_SUPPORT),1)
-      msg := $(warning No libelf found, disables 'probe' tool and BPF support in 'perf record', please install elfutils-libelf-devel/libelf-dev);
+      msg := $(warning No libelf found, disables 'probe' tool and BPF support in 'perf record', please install libelf-dev, libelf-devel or elfutils-libelf-devel);
 
       NO_LIBELF := 1
       NO_DWARF := 1