From 83a80d02a0b9cf29781f3eef2bf37832f79a2a0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 14 Jan 2013 16:45:47 +0000 Subject: [PATCH] Extras: Fix the undefined reference to md build error. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Removed scripted modifications to lttng_wrap.c during Python binding generation. This adds back the "md" warning of SWIG. See the upstream bug still waiting to merged upstream: sourceforge.net/p/swig/bugs/1246/ Signed-off-by: Jérémie Galarneau Signed-off-by: David Goulet --- extras/bindings/swig/python/Makefile.am | 4 ---- 1 file changed, 4 deletions(-) diff --git a/extras/bindings/swig/python/Makefile.am b/extras/bindings/swig/python/Makefile.am index d592dedb3..c6a69010e 100644 --- a/extras/bindings/swig/python/Makefile.am +++ b/extras/bindings/swig/python/Makefile.am @@ -17,11 +17,7 @@ _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 -# SWIG 'warning md variable unused' fixed after SWIG build: lttng_wrap.c: lttng.i $(SWIG) -python -I. -I$(top_srcdir)/src/common/sessiond-comm lttng.i - sed -i "s/PyObject \*m, \*d, \*md;/PyObject \*m, \*d;\n#if defined(SWIGPYTHON_BUILTIN)\nPyObject *md;\n#endif/g" lttng_wrap.c - sed -i "s/md = d/d/g" lttng_wrap.c - sed -i "s/(void)public_symbol;/(void)public_symbol;\n md = d;/g" lttng_wrap.c CLEANFILES = lttng.i lttng.py lttng_wrap.c lttng.pyc -- 2.34.1