summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel M. Pelt <D.M.Pelt@cwi.nl>2016-04-19 17:12:58 +0200
committerDaniel M. Pelt <D.M.Pelt@cwi.nl>2016-04-19 17:12:58 +0200
commit93eacadc5b94f8e1241dc6836be27d16881a2826 (patch)
treeb4509a5c6c52dcdce25ceac06391c24bc98e9f5a
parentc58929ca7d0201335b5036773b26f82361793f25 (diff)
downloadastra-93eacadc5b94f8e1241dc6836be27d16881a2826.tar.gz
astra-93eacadc5b94f8e1241dc6836be27d16881a2826.tar.bz2
astra-93eacadc5b94f8e1241dc6836be27d16881a2826.tar.xz
astra-93eacadc5b94f8e1241dc6836be27d16881a2826.zip
Add comment about setting CC to CXX
-rw-r--r--build/linux/Makefile.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/linux/Makefile.in b/build/linux/Makefile.in
index 2214734..f10f482 100644
--- a/build/linux/Makefile.in
+++ b/build/linux/Makefile.in
@@ -281,12 +281,14 @@ ifeq ($(python),yes)
py: libastra.la
$(MKDIR) python/build
$(MKDIR) python/finalbuild
+ # Note: setting CC to CXX is intentional. Python uses CC for compilation even if input is C++.
cd $(srcdir)/../../python; CXX="${CXX}" CC="${CXX}" CPPFLAGS="${PYCPPFLAGS}" LDFLAGS="${PYLDFLAGS}" $(PYTHON) builder.py build --build-base=$(abs_top_builddir)/python/build install \
--install-base=$(abs_top_builddir)/python/finalbuild --install-headers=$(abs_top_builddir)/python/finalbuild --install-purelib=$(abs_top_builddir)/python/finalbuild \
--install-platlib=$(abs_top_builddir)/python/finalbuild --install-scripts=$(abs_top_builddir)/python/finalbuild --install-data=$(abs_top_builddir)/python/finalbuild
python-root-install: libastra.la
$(MKDIR) python/build
+ # Note: setting CC to CXX is intentional. Python uses CC for compilation even if input is C++.
cd $(srcdir)/../../python; CXX="${CXX}" CC="${CXX}" CPPFLAGS="${PYCPPFLAGS}" LDFLAGS="${PYLDFLAGS}" $(PYTHON) builder.py build --build-base=$(abs_top_builddir)/python/build install
endif