Re: Proposal: Making Debian compiler agnostic
On 28/08/12 16:54, Mathieu Malaterre wrote:
> On Tue, Aug 28, 2012 at 5:53 PM, Mathieu Malaterre <firstname.lastname@example.org> wrote:
>> At least from cmake point of view, a user need to provide an env var
>> 'FC' for the fortran compiler and sets 'FLAGS'.
> Missing one 'F', it should read 'FFLAGS'
Unfortunately, this isn't fully compatible with what Autoconf does (see
"info autoconf 'Fortran Compiler Characteristics'"). Autoconf
distinguishes between F77 and "modern Fortran" (whatever that means),
and cmake seems to have taken one variable name from each set.
Autoconf 2.69 in sid documents support for:
C | CPP | CC | CFLAGS | LIBS
C++ | CXXCPP | CXX | CXXFLAGS | LIBS
F77 | | F77 | FFLAGS | FLIBS
modern Fortran | | FC | FCFLAGS | FCLIBS
Objective C | OBJCPP | OBJC | OBJCFLAGS | LIBS (?)
Objective C++ | OBJCXXCPP | OBJCXX | OBJCXXFLAGS | LIBS (?)
Erlang | | ERLC | ERLCFLAGS |
Go | | GOC | GOFLAGS |
The GNU Coding Standards mention CC, CFLAGS, CPPFLAGS and LDFLAGS; the
rest are from Autoconf.
 also looks in $CCC if $CXX is unset