aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVladislav Valtchev (VMware) <vladislav.valtchev@gmail.com>2018-02-06 10:49:02 +0200
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-11-20 12:09:14 -0500
commit51d1ee56674e9c39bffdebec31eae055ab47cd85 (patch)
treef49fd4f607d8b5d8a2348f7fbf52cd7d471363b0 /scripts
parent225a48b1295fcb852eacf5133c04c979711d8a87 (diff)
downloadlibtracefs-51d1ee56674e9c39bffdebec31eae055ab47cd85.tar.gz
trace-cmd: Make the plugins buildable out-of-tree
This patch allows the plugins to be buildable out-of-tree when the 'O' variable is set at command line while invoking make. At this stage, when the 'O' variable is set, the out-of-tree build will fail (as it *already* does on the master branch) but with errors unrelated with the plugins: with this patch the final goal of a fully working out-of-tree build gets closer. In successive steps, the remaining Makefiles will be made to support out-of-tree builds, until everything works. NOTE: the regular in-tree build of all targets clearly continues to work. Signed-off-by: Vladislav Valtchev (VMware) <vladislav.valtchev@gmail.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/utils.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/utils.mk b/scripts/utils.mk
index 043a68a..06e8dc3 100644
--- a/scripts/utils.mk
+++ b/scripts/utils.mk
@@ -64,7 +64,7 @@ do_plugin_build = \
do_compile_python_plugin_obj = \
($(print_plugin_obj_compile) \
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $(CFLAGS_$@) $(PYTHON_INCLUDES) -fPIC -o $@ $<)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(PYTHON_DIR_SQ) $(PYTHON_INCLUDES) -fPIC -o $@ $<)
do_python_plugin_build = \
($(print_plugin_build) \