diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2005-06-08 19:54:15 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2005-06-08 19:54:15 (GMT) |
commit | 40b72a28acb974ca25876b05ec8d53fae10e7012 (patch) | |
tree | c21b9c88ab4ae9527e5e73a176d3efda4ad68269 /config/i686-pc-cygwin | |
parent | 6bf7952de0057c530fa3b7ff7d4f50ca8c8a90c1 (diff) | |
download | hdf5-40b72a28acb974ca25876b05ec8d53fae10e7012.zip hdf5-40b72a28acb974ca25876b05ec8d53fae10e7012.tar.gz hdf5-40b72a28acb974ca25876b05ec8d53fae10e7012.tar.bz2 |
[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:
Diffstat (limited to 'config/i686-pc-cygwin')
-rw-r--r-- | config/i686-pc-cygwin | 11 |
1 files 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' |