summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/make/known-architectures/linux4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/make/known-architectures/linux b/lib/make/known-architectures/linux
index 1e0475e4..990dc9a4 100644
--- a/lib/make/known-architectures/linux
+++ b/lib/make/known-architectures/linux
@@ -143,8 +143,8 @@ else
: ${LIBS='gfortran'}
: ${LIBDIRS="$gnu95_libdir"}
fi
- F77_VERSION="`$F77 --version 2>&1 | head -n1`"
- F90_VERSION="`$F90 --version 2>&1 | head -n1`"
+ F77_VERSION="`$F77 --version 2>&1 | grep GNU | head -n1`"
+ F90_VERSION="`$F90 --version 2>&1 | grep GNU | head -n1`"
# only gfortran versions 4.1 and higher support OpenMP
major_version=`echo $F77_VERSION | cut -d')' -f2 | tr -d ' ' | cut -d'.' -f1`
minor_version=`echo $F77_VERSION | cut -d')' -f2 | cut -d'.' -f2`