X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2FMakefile.am;h=ec30c005c91468215470cc9306cfdad23809099f;hb=3836459448570db9604fe73afff3dc7edd12cb11;hp=ccd56bbbaec30e1f0a34bbf965d4c472627f869f;hpb=5038e25680486da1eb36b0f8f020e6609618dda1;p=babeltrace.git diff --git a/src/bindings/python/bt2/Makefile.am b/src/bindings/python/bt2/Makefile.am index ccd56bbb..ec30c005 100644 --- a/src/bindings/python/bt2/Makefile.am +++ b/src/bindings/python/bt2/Makefile.am @@ -1,3 +1,5 @@ +# 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. @@ -110,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