Extras: Fix the undefined reference to md build error.
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 14 Jan 2013 16:45:47 +0000 (16:45 +0000)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 17 Jan 2013 15:54:09 +0000 (10:54 -0500)
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 <jeremie.galarneau@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
extras/bindings/swig/python/Makefile.am

index d592dedb3a2182e163c9631b658af9a9d8af0339..c6a69010eadfefdef7622874f725634ea43fa20f 100644 (file)
@@ -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
This page took 0.033055 seconds and 4 git commands to generate.