[svn-r10880] Purpose:

Adding supports for cygwin

Description:
g95 needs special fortran flags to make it work cygwin.

Solution:
Add the flag on cygwin config file.
Now gcc, g++ and g95 are supported on cygwin.

Platforms tested:
cygwinNT_5.1, Linux 2.4
Misc. update:
This commit is contained in:
MuQun Yang 2005-06-08 14:54:15 -05:00
parent 6bf7952de0
commit 40b72a28ac

View File

@ -24,7 +24,12 @@ fi
# The default Fortran 90 compiler
if test "X-" = "X-$FC"; then
case $CC_BASENAME in
gcc*|pgcc*)
gcc*)
FC=g95
FCLIBS=-lgcc
FC_BASENAME=g95
;;
pgcc*)
FC=pgf90
FC_BASENAME=pgf90
;;
@ -42,7 +47,9 @@ else
# The PGI and Intel compilers are automatically detected below
ifc*|ifort*|pgf90*)
;;
g95)
FCLIBS=-lgcc
;;
*)
# Figure out which compiler we are using: pgf90 or Absoft f95
RM='rm -f'