Skip to content

Commit

Permalink
add -std=legacy to MY_FDEFS if gfortran, see #4
Browse files Browse the repository at this point in the history
- this should imply -fallow-argument-mismatch with GCC 10
  • Loading branch information
svigerske committed Jun 16, 2020
1 parent 3e28f80 commit c1be20c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -18753,6 +18753,7 @@ if test "$coin_has_metis" = yes; then
fi

# Fix Fortran preprocessor flags
# Add workaround for incompatibility with Fortran 2003 (https://github.com/coin-or-tools/ThirdParty-Mumps/issues/4)
case $FC in
*xlf*)
fdefs=
Expand All @@ -18763,6 +18764,9 @@ case $FC in
fi
MY_FDEFS="$fdefs"
;;
*gfortran*)
MY_FDEFS="$MY_FDEFS -std=legacy"
;;
esac


Expand Down
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ if test "$coin_has_metis" = yes; then
fi

# Fix Fortran preprocessor flags
# Add workaround for incompatibility with Fortran 2003 (https://github.com/coin-or-tools/ThirdParty-Mumps/issues/4)
case $FC in
*xlf*)
fdefs=
Expand All @@ -116,6 +117,9 @@ case $FC in
fi
MY_FDEFS="$fdefs"
;;
*gfortran*)
MY_FDEFS="$MY_FDEFS -std=legacy"
;;
esac
AC_SUBST(MY_FDEFS)

Expand Down

0 comments on commit c1be20c

Please sign in to comment.