[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FC recommendation in README.MacOS
From: |
Rik |
Subject: |
FC recommendation in README.MacOS |
Date: |
Thu, 27 Nov 2014 20:51:31 -0800 |
11/27/14
Has anyone followed the instructions for building Octave in the
README.MacOS and does the line defining the Fortran compiler FC make any
difference?
##### Cut #####
2.2.2 Building Octave as a 32-bit Application
--------------------------------------------
The commands below are sufficient to build a 32-bit Octave.
export FC="/usr/bin/gfortran"
export CFLAGS="-m32"
export FFLAGS="$CFLAGS -ff2c"
export CPPFLAGS="$CFLAGS -D_REENTRANT -D__LISTS__"
export LDFLAGS="$CFLAGS"
./configure --disable-readline --disable-docs
make
##### End Cut #####
On the Linux side, the Fortran compiler used is set by the F77 environment
variable, not the FC variable. I rather suspect that it is the same on a
Mac and that the line should be "export F77=...". Again on Linux, if FC is
used for the compiler then the flags variable is FCFLAGS, not FFLAGS. So
there is a second mismatch.
I'm working at removing cruft and this is one of the few places in the
Octave sources that mentions the FC variable.
Thanks,
Rik
- FC recommendation in README.MacOS,
Rik <=