X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2FMakefile.am;h=c8e3eb44ae99e391fba19fccd46b1d7048a00a9a;hb=0b0893d4a069f17d1326ebc3bfc9f9f987f411f3;hp=cc0ded098e8638f9254f9b31e2e72bcfbebadbae;hpb=518048367b06466975aba10bf993cf94e1e60552;p=babeltrace.git diff --git a/src/bindings/python/bt2/Makefile.am b/src/bindings/python/bt2/Makefile.am index cc0ded09..c8e3eb44 100644 --- a/src/bindings/python/bt2/Makefile.am +++ b/src/bindings/python/bt2/Makefile.am @@ -1,7 +1,9 @@ +# SPDX-License-Identifier: MIT + # Since the shared object used by the python bindings is not built with # libtool, we need to add the directory containing libbabeltrace2 to the # linker path. -AM_LDFLAGS=-L$(top_builddir)/src/lib/.libs +AM_LDFLAGS += -L$(top_builddir)/src/lib/.libs INSTALLED_FILES=$(builddir)/installed_files.txt @@ -17,6 +19,7 @@ SWIG_INTERFACE_FILES = \ bt2/native_bt_component_class.i.h \ bt2/native_bt_connection.i \ bt2/native_bt_error.i \ + bt2/native_bt_error.i.h \ bt2/native_bt_event.i \ bt2/native_bt_event_class.i \ bt2/native_bt_field.i \ @@ -94,7 +97,8 @@ STATIC_LIBRARIES_DEPS = \ $(top_builddir)/src/autodisc/libbabeltrace2-autodisc.la \ $(top_builddir)/src/logging/libbabeltrace2-logging.la \ $(top_builddir)/src/common/libbabeltrace2-common.la \ - $(top_builddir)/src/py-common/libbabeltrace2-py-common.la + $(top_builddir)/src/py-common/libbabeltrace2-py-common.la \ + $(top_builddir)/src/string-format/libbabeltrace2-string-format.la GENERATED_BINDINGS_DEPS = \ bt2/native_bt.c \ @@ -108,10 +112,17 @@ GENERATED_BINDINGS_DEPS = \ # Disable -Wshadow for that file. WARN_CFLAGS = -Wno-shadow +WARN_CFLAGS += -Wno-null-dereference + +# Python 3.8 with SWIG 4.0.2 generates a deprecated warning for 'tp_print' +# and in general there is not much we can do about deprecations in generated +# code. +WARN_CFLAGS += -Wno-deprecated-declarations + BUILD_FLAGS=CC="$(CC)" \ CFLAGS="$(GLIB_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(WARN_CFLAGS)" \ CPPFLAGS="$(AM_CPPFLAGS) $(CPPFLAGS) -I$(srcdir)/bt2" \ - LDFLAGS="$(AM_LDFLAGS) $(LDFLAGS) $(GLIB_LIBS) $(LIBS)" + LDFLAGS="$(AM_LDFLAGS) $(LDFLAGS) $(GLIB_LIBS) $(PYTHON_LDFLAGS) $(LIBS)" all-local: build-python-bindings.stamp