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++.
This commit is contained in:
parent
3d86913266
commit
5dd538ded0
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue