On 10/28/10 02:34 PM, Alexandre Blondin Massé wrote:
In that case, since it's compiling a C++ file, the variable should be called
CXX, so changing to
$(CXX) $(CFLAGS) -c cubex.cpp
and removing the line
CC=g++
makes it use Sage's variable.
It doesn't change much to the problem, but instead of removing the
line
CC = g++
I think you could replace it with
CC ?= g++
which set the compiler to g++ only if CC is not already defined.
http://www.gnu.org/software/make/manual/html_node/Setting.html#Setting
There's no need to set CC to be gcc if CC is not defined, since the sage
environment does that automatically. If CC is undefined, it gets set to gcc. CXX
gets set to g++.
Most programs in Sage do now respect CC and CXX, but there are at least half a
dozen that do not.
dave
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org