X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2FMakefile.am;h=124fadaf47d813eb6b25a2bb4f424204f7fae09b;hb=e90ceff4a51fda1e0fc0dcb94f9e7f54aca93a58;hp=ec30c005c91468215470cc9306cfdad23809099f;hpb=3836459448570db9604fe73afff3dc7edd12cb11;p=babeltrace.git diff --git a/src/bindings/python/bt2/Makefile.am b/src/bindings/python/bt2/Makefile.am index ec30c005..124fadaf 100644 --- a/src/bindings/python/bt2/Makefile.am +++ b/src/bindings/python/bt2/Makefile.am @@ -3,7 +3,7 @@ # 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 @@ -119,6 +119,9 @@ WARN_CFLAGS += -Wno-null-dereference # code. WARN_CFLAGS += -Wno-deprecated-declarations +# Python 3.11 + gcc 12.2.0 gave warnings of this kind in Python.h. +WARN_CFLAGS += -Wno-redundant-decls + BUILD_FLAGS=CC="$(CC)" \ CFLAGS="$(GLIB_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(WARN_CFLAGS)" \ CPPFLAGS="$(AM_CPPFLAGS) $(CPPFLAGS) -I$(srcdir)/bt2" \ @@ -148,8 +151,12 @@ $(builddir)/bt2/native_bt.c: $(SWIG_INTERFACE_FILES) -include bt2/native_bt.d +pyinstall_verbose = $(pyinstall_verbose_@AM_V@) +pyinstall_verbose_ = $(pyinstall_verbose_@AM_DEFAULT_V@) +pyinstall_verbose_0 = @ + install-exec-local: build-python-bindings.stamp - @opts="--prefix=$(prefix) --record $(INSTALLED_FILES) --verbose --no-compile $(DISTSETUPOPTS)"; \ + $(pyinstall_verbose)opts="--prefix=$(prefix) --record $(INSTALLED_FILES) --verbose --no-compile $(DISTSETUPOPTS)"; \ if [ "$(DESTDIR)" != "" ]; then \ opts="$$opts --root=$(DESTDIR)"; \ fi; \