[SciPy-user] SciPy with gcc4 and gfortran on OS X

Robert Kern robert.kern at gmail.com
Sat Apr 8 14:42:37 CDT 2006

Pearu Peterson wrote:
> On Sat, 8 Apr 2006, Robert Kern wrote:
>>Pearu Peterson wrote:
>>>On Sat, 8 Apr 2006, Zachary Pincus wrote:
>>>>Finally, I would note that maybe the patched setup.py files should only turn
>>>>off optimization for the mach files if gfortran is being used. (If this is
>>>>something that can easily be done.)
>>>Nope. Actually mach files should be compiled without optimization for all
>>>compilers. So the patched setup.py files are ok.
>>My question is, does -O mean the same thing for all compilers?
> Hmm, not sure. But I wouldn't count on it. For example, for gcc -O means 
> level 1 optimization, for intel compilers -O sets level 2 optimization.
> I wonder, why this question is relevant for you?

The scipy-gfortran.patch that Zach provided adds extra_compile_args=['-O'] to
the all of the mach files regardless of what compiler is compiling them.

I'm also wondering about Windows Fortran compilers which may try to mimic MSVC's
/slash /style /arguments.

Robert Kern
robert.kern at gmail.com

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco

More information about the SciPy-user mailing list