Posted by
Dirk Eddelbuettel on
Nov 30, 2001; 4:57am
URL: http://quantlib.414.s1.nabble.com/Re-none-tp1803p1804.html
Hi Enrico,
"Enrico" == enrico sirola <
[hidden email]> writes:
Dirk> I am currently struggling trying to tell setup.py to not use "-g
Dirk> -O2", but without success.
Enrico> hmmm I had the same problem some time ago and took a look at
Enrico> /usr/lib/python2.1/distutils/unixcompiler.py. Quoting it:
Enrico>
Enrico> # XXX Things not currently handled: # * optimization/debug/warning
Enrico> flags; we just use whatever's in Python's # Makefile and live with
Enrico> it. Is this adequate? If not, we might # have to have a bunch of
Enrico> subclasses GNUCCompiler, SGICCompiler,
Enrico>
Enrico> so it seems this feature is not actually available in distutils out
Enrico> of the box... The flags that has been used to compile python are in
Enrico> /usr/lib/python2.1/config/Makefile, so it seems that python has
Thanks for the heads-up. I was just trying to make a good guess as to what
might suppress the floating point error in 'make test' by compiling with a
different g++, compiling with different options, ... as this has helped on
other cases.
Enrico> been built with g++ and should (?) be built with g++-3.0 I think
Enrico> one could define his compiler instance in distutils using the
Enrico> new_compiler factory. I'll frobnicate a bit on this issue in the
Enrico> next days...
Thanks. We probably need it for ia64 where gcc-3.0, g++-3.0, ... are
preferred.
Dirk
--
Better to have an approximate answer to the right question than a precise
answer to the wrong question. -- John Tukey as quoted by John Chambers