[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fortran optimization flags

From: rik
Subject: Re: Fortran optimization flags
Date: Wed, 03 Jun 2015 17:00:18 -0700

On 06/03/2015 01:03 PM, Mike Miller wrote:
> On Wed, Jun 3, 2015 at 15:19:42 -0400, John W. Eaton wrote:
>> The autoconf macros for Fortran compilers should be doing this for us, but I
>> see we set FFLAGS to -O if it is not already set in the environment when
>> configure runs.  That's probably the wrong thing to do.  Maybe we should
>> just leave this choice up to the autoconf macro?
> I always assumed this was done for a reason, maybe something finicky
> with the Fortran libraries in liboctave/cruft, but actually now that I
> think about it we override these flags in the Debian build. I agree,
> we should not set FFLAGS and let autoconf set the defaults.

I tested and the autoconf defaults are the same as for CFLAGS and CXXFLAGS,
namely '-g -O2'.  Since this doesn't cause a problem--'make check'
passes--I went ahead and removed the override in configure.ac on the
development branch (http://hg.savannah.gnu.org/hgweb/octave/rev/78293a28f2a5).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]