summaryrefslogtreecommitdiffstats
path: root/perf-plugin-dir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'perf-plugin-dir.patch')
-rw-r--r--perf-plugin-dir.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/perf-plugin-dir.patch b/perf-plugin-dir.patch
new file mode 100644
index 000000000..d4a972eb8
--- /dev/null
+++ b/perf-plugin-dir.patch
@@ -0,0 +1,24 @@
+diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile
+index 56d52a3..005c9cc 100644
+--- a/tools/lib/traceevent/Makefile
++++ b/tools/lib/traceevent/Makefile
+@@ -63,7 +63,7 @@ endif
+ endif
+
+ ifeq ($(set_plugin_dir),1)
+-PLUGIN_DIR = -DPLUGIN_DIR="$(DESTDIR)/$(plugin_dir)"
++PLUGIN_DIR = -DPLUGIN_DIR="$(plugin_dir)"
+ PLUGIN_DIR_SQ = '$(subst ','\'',$(PLUGIN_DIR))'
+ endif
+
+diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
+index d604e50..c48d449 100644
+--- a/tools/perf/config/Makefile
++++ b/tools/perf/config/Makefile
+@@ -600,5 +600,5 @@ perfexec_instdir_SQ = $(subst ','\'',$(perfexec_instdir))
+ # Otherwise we install plugins into the global $(libdir).
+ ifdef DESTDIR
+ plugindir=$(libdir)/traceevent/plugins
+-plugindir_SQ= $(subst ','\'',$(prefix)/$(plugindir))
++plugindir_SQ= $(subst ','\'',$(plugindir))
+ endif