[systemtap][PATCH] python/Makefile.am: use absolute path for source directory includes as well
Alexander Kanavin
alex@linutronix.de
Fri Jun 6 11:34:25 GMT 2025
Otherwise it would be relative to the build directory,
which works only if the build and source directory are in the
same parent directory, and breaks if they're on different levels.
---
python/Makefile.am | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/Makefile.am b/python/Makefile.am
index 13618dc2f..845db3661 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -2,10 +2,10 @@
AUTOMAKE_OPTIONS = subdir-objects
-# Note that we have to use 'abs_builddir' here since we change
+# Note that we have to use absolute directores here since we change
# directories back to the source directory when building the python
# extension.
-AM_CPPFLAGS = -I$(srcdir)/../includes
+AM_CPPFLAGS = -I$(abs_srcdir)/../includes
AM_CPPFLAGS += -I$(abs_builddir)/../includes/sys
# Any script in the following variable will get byte-compiled at
--
2.39.5
More information about the Systemtap
mailing list