[lttng-dev] [PATCH lttng-tools] Fix python bindings' Makefile for out-of-tree builds
Simon Marchi
simon.marchi at polymtl.ca
Thu Feb 19 11:18:36 EST 2015
Signed-off-by: Simon Marchi <simon.marchi at polymtl.ca>
---
extras/bindings/swig/python/Makefile.am | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/extras/bindings/swig/python/Makefile.am b/extras/bindings/swig/python/Makefile.am
index ec35930..3b71171 100644
--- a/extras/bindings/swig/python/Makefile.am
+++ b/extras/bindings/swig/python/Makefile.am
@@ -1,5 +1,5 @@
lttng.i: lttng.i.in
- sed "s/LTTNG_VERSION_STR/LTTng $(PACKAGE_VERSION)/g" <lttng.i.in >lttng.i
+ sed "s/LTTNG_VERSION_STR/LTTng $(PACKAGE_VERSION)/g" < $(srcdir)/lttng.i.in >lttng.i
AM_CFLAGS = $(PYTHON_INCLUDE) -I$(top_srcdir)/lib/lttng-ctl -I../common \
$(BUDDY_CFLAGS)
@@ -12,9 +12,9 @@ MAINTAINERCLEANFILES = lttng_wrap.c lttng.py
nodist__lttng_la_SOURCES = lttng_wrap.c
_lttng_la_LDFLAGS = -module
-_lttng_la_LIBADD = $(top_srcdir)/src/lib/lttng-ctl/liblttng-ctl.la \
- $(top_srcdir)/src/common/sessiond-comm/libsessiond-comm.la \
- $(top_srcdir)/src/common/libcommon.la
+_lttng_la_LIBADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
+ $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \
+ $(top_builddir)/src/common/libcommon.la
lttng_wrap.c: lttng.i
$(SWIG) -python -I. -I$(top_srcdir)/src/common/sessiond-comm lttng.i
--
2.3.0
More information about the lttng-dev
mailing list