fix: pass exec-prefix to python bindings install
[babeltrace.git] / src / bindings / python / bt2 / Makefile.am
index ccd56bbbaec30e1f0a34bbf965d4c472627f869f..0e9b9a3f3de2cdfb0b867f0688e3321b70d3dc16 100644 (file)
@@ -110,6 +110,16 @@ 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
+
+# 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" \
@@ -140,7 +150,7 @@ $(builddir)/bt2/native_bt.c: $(SWIG_INTERFACE_FILES)
 -include bt2/native_bt.d
 
 install-exec-local: build-python-bindings.stamp
-       @opts="--prefix=$(prefix) --record $(INSTALLED_FILES) --verbose --no-compile $(DISTSETUPOPTS)"; \
+       @opts="--prefix=$(prefix) --exec-prefix=$(exec_prefix) --record $(INSTALLED_FILES) --verbose --no-compile $(DISTSETUPOPTS)"; \
        if [ "$(DESTDIR)" != "" ]; then \
                opts="$$opts --root=$(DESTDIR)"; \
        fi; \
This page took 0.04231 seconds and 4 git commands to generate.