From 5dd538ded0d5873541af7cdf2e54c3e6d8297b49 Mon Sep 17 00:00:00 2001 From: Daniel Elstner Date: Mon, 2 Nov 2015 14:30:24 +0100 Subject: [PATCH] build: Set CXXFLAGS when building Python module Set both CFLAGS and CXXFLAGS when executing setup.py to build the Python bindings. Newer versions of distutils/setuptools have apparently started to pick up the latter when compiling C++. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 10b2d03b..660b0fc9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -590,7 +590,7 @@ PDIR = bindings/python PDOC_START = bindings/python/sigrok/core/doc_start.i PDOC_END = bindings/python/sigrok/core/doc_end.i -setup_vars = VERSION='$(PACKAGE_VERSION)' CC='$(CXX)' CFLAGS='$(AM_CXXFLAGS) $(CXXFLAGS)' LDADD='$(PYSIGROK_LIBS)' +setup_vars = VERSION='$(PACKAGE_VERSION)' CC='$(CXX)' CFLAGS='$(AM_CXXFLAGS) $(CXXFLAGS)' CXXFLAGS='$(AM_CXXFLAGS) $(CXXFLAGS)' LDADD='$(PYSIGROK_LIBS)' setup_quiet = --quiet setup_py = $(PYTHON) $(srcdir)/$(PDIR)/setup.py $(setup_vars) $(setup_quiet)