From 772ff7857761fb0fd12c5c158ae69460f9baf3dc Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Fri, 2 Jun 2017 11:56:44 -0400 Subject: [PATCH 1/1] Fix: use LDFLAGS instead of LIBS for python bindings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Turns out that contrary to what is documented some versions of distutils don't honor the LIBS variable, use LDFLAGS instead. Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- bindings/python/Makefile.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am index f6806a85..2ceab037 100644 --- a/bindings/python/Makefile.am +++ b/bindings/python/Makefile.am @@ -25,8 +25,7 @@ BINDINGS_DEPS=setup.py \ BUILD_FLAGS=CC="$(CC)" \ CFLAGS="$(GLIB_CFLAGS) $(AM_CFLAGS) $(CFLAGS)" \ CPPFLAGS="$(DEFS) $(DEFAULT_INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)" \ - LDFLAGS="$(AM_LDFLAGS) $(LDFLAGS)" \ - LIBS="$(GLIB_LIBS) $(LIBS)" + LDFLAGS="$(AM_LDFLAGS) $(LDFLAGS) $(GLIB_LIBS) $(LIBS)" build-python-bindings.stamp: $(BINDINGS_DEPS) $(BUILD_FLAGS) $(PYTHON) $(builddir)/setup.py build_ext -- 2.34.1