From 64da282dfe2eb7a49110e005657a69b1b39fa010 Mon Sep 17 00:00:00 2001 From: Nicolas Barbey Date: Wed, 11 May 2016 17:43:13 +0200 Subject: [PATCH 1/2] fix failing build if python points to python3 instead of python2. In archlinux, python points to python3 instead of python2. This breaks the build at two locations which do not make use of the $(PYTHON) variable. --- bindings/python/tests/Makefile.am | 2 ++ lasso/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bindings/python/tests/Makefile.am b/bindings/python/tests/Makefile.am index 205e761..dc9ba4d 100644 --- a/bindings/python/tests/Makefile.am +++ b/bindings/python/tests/Makefile.am @@ -1,4 +1,6 @@ MAINTAINERCLEANFILES = Makefile.in + +LOG_COMPILER = $(PYTHON) TESTS = # TESTS_ENVIRONMENT=TOP_SRCDIR=$(top_srcdir) diff --git a/lasso/Makefile.am b/lasso/Makefile.am index 751f941..49ae88a 100644 --- a/lasso/Makefile.am +++ b/lasso/Makefile.am @@ -91,7 +91,7 @@ liblasso_la_LDFLAGS = -no-undefined -version-info @LASSO_VERSION_INFO@ \ endif $(srcdir)/errors.c: $(srcdir)/errors.h $(srcdir)/build_strerror.py - python $(srcdir)/build_strerror.py $(srcdir) >.errors.c.new + $(PYTHON) $(srcdir)/build_strerror.py $(srcdir) >.errors.c.new if ! cmp -s $(srcdir)/errors.c .errors.c.new; then \ mv -f .errors.c.new $@; else \ rm .errors.c.new; fi -- 2.8.0