diff options
-rw-r--r-- | fortran/config/linux-gnulibc1 | 9 | ||||
-rw-r--r-- | fortran/src/H5f90i.h | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/fortran/config/linux-gnulibc1 b/fortran/config/linux-gnulibc1 index 83bbc88..f1fca9b 100644 --- a/fortran/config/linux-gnulibc1 +++ b/fortran/config/linux-gnulibc1 @@ -43,7 +43,9 @@ else # The PGI and Intel compilers are automatically detected below ifc*|ifort*|pgf90*) ;; - + g95) + F9X_BASENAME=g95 + ;; *) # Figure out which compiler we are using: pgf90 or Absoft f95 RM='rm -f' @@ -103,5 +105,8 @@ case $F9X_BASENAME in PROFILE_FFLAGS="-g" f9x_flags_set=yes ;; - + g95) + # Set required flag for compiling C stubs + CFLAGS="$CFLAGS -DH5_G95" + ;; esac diff --git a/fortran/src/H5f90i.h b/fortran/src/H5f90i.h index 9d9460f..ab4e44d 100644 --- a/fortran/src/H5f90i.h +++ b/fortran/src/H5f90i.h @@ -89,6 +89,8 @@ typedef long long hssize_t_f; typedef int size_t_f; #if defined H5_ABSOFT #define DF_CAPFNAMES +#elif defined H5_G95 +#define FNAME_POST2_UNDERSCORE #else #define FNAME_POST_UNDERSCORE #endif /*H5_ABSOFT*/ |