X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=extras%2Fbindings%2Fswig%2Fpython%2FMakefile.am;h=d9cdd680d52756541314116896996ee02a5c500f;hb=HEAD;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..4b2687e73 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 @@ -29,9 +30,15 @@ MAINTAINERCLEANFILES = lttng_wrap.c lttng.py nodist__lttng_la_SOURCES = lttng_wrap.c _lttng_la_LDFLAGS = -module -_lttng_la_LIBADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \ +_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 + $(top_builddir)/src/common/libcommon-gpl.la \ + $(top_builddir)/src/vendor/fmt/libfmt.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