X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=extras%2Fbindings%2Fswig%2Fpython%2FMakefile.am;h=d9cdd680d52756541314116896996ee02a5c500f;hb=f2b390e97d3b6ec347fe7c4af3b46256716ae054;hp=29914e5cd5404e131393e310efaf8efe9ed53d97;hpb=011e18de205a8ce58182e59301aad48513a28c0b;p=lttng-tools.git diff --git a/extras/bindings/swig/python/Makefile.am b/extras/bindings/swig/python/Makefile.am index 29914e5cd..d9cdd680d 100644 --- a/extras/bindings/swig/python/Makefile.am +++ b/extras/bindings/swig/python/Makefile.am @@ -11,6 +11,7 @@ lttng.i: lttng.i.in AM_CFLAGS += \ -Wno-cast-function-type \ -Wno-missing-field-initializers \ + -Wno-null-dereference \ -Wno-redundant-decls \ -Wno-shadow \ -Wno-unused-parameter @@ -33,6 +34,11 @@ _lttng_la_LIBADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \ $(top_builddir)/src/common/libsessiond-comm.la \ $(top_builddir)/src/common/libcommon-gpl.la +# Use this fake source file to force the link mode of the library +# from gcc to g++. The library contains only C code, but depends on +# libstdc++. +nodist_EXTRA__lttng_la_SOURCES = dummy.cpp + lttng_wrap.c: lttng.i $(SWIG) -python -I. -I$(top_srcdir)/src/common/sessiond-comm lttng.i