From 40b72a28acb974ca25876b05ec8d53fae10e7012 Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Wed, 8 Jun 2005 14:54:15 -0500 Subject: [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: --- config/i686-pc-cygwin | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/config/i686-pc-cygwin b/config/i686-pc-cygwin index 49054a1..3dea6db 100644 --- a/config/i686-pc-cygwin +++ b/config/i686-pc-cygwin @@ -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' -- cgit v0.12