aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/files/features/perf/perf-add-libperl-not-found-warning.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/files/features/perf/perf-add-libperl-not-found-warning.patch')
-rw-r--r--recipes-kernel/linux/files/features/perf/perf-add-libperl-not-found-warning.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/features/perf/perf-add-libperl-not-found-warning.patch b/recipes-kernel/linux/files/features/perf/perf-add-libperl-not-found-warning.patch
new file mode 100644
index 0000000..799bc6c
--- /dev/null
+++ b/recipes-kernel/linux/files/features/perf/perf-add-libperl-not-found-warning.patch
@@ -0,0 +1,21 @@
+From 8ff1ab68ba2cb073c328fe540161080d146e0daf Mon Sep 17 00:00:00 2001
+From: Tom Zanussi <tom.zanussi@intel.com>
+Date: Tue, 3 Jul 2012 13:07:22 -0500
+Subject: [PATCH 2/3] perf: add 'libperl not found' warning
+
+If libperl isn't found, display a message to that effect along with
+some hints on how to fix it.
+
+Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
+diff --git a/tools/perf/Makefile b/tools/perf/Makefile
+index cc3b54d..a22cee9 100644
+--- a/tools/perf/Makefile
++++ b/tools/perf/Makefile
+@@ -694,6 +694,7 @@ else
+ FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS)
+
+ ifneq ($(call try-cc,$(SOURCE_PERL_EMBED),$(FLAGS_PERL_EMBED),perl),y)
++ msg := $(warning libperl not found, disables Perl scripting support. Please install libperl-dev or perl-devel);
+ BASIC_CFLAGS += -DNO_LIBPERL
+ else
+ ALL_LDFLAGS += $(PERL_EMBED_LDFLAGS)