summaryrefslogtreecommitdiffstats
path: root/config/gnu-flags
diff options
context:
space:
mode:
Diffstat (limited to 'config/gnu-flags')
-rw-r--r--config/gnu-flags5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index 6355ccf..7a6686e 100644
--- a/config/gnu-flags
+++ b/config/gnu-flags
@@ -29,10 +29,13 @@ if test "X-" = "X-$cc_flags_set"; then
# icc beginning with version 12 includes a "gcc version compatiblilty"
# string, causing the gcc H5_CFLAGS to be erroneously added. The line
# "grep -v 'icc version'" causes the discarding of any output
- # containing 'icc version'. The cc_version for icc is correctly determined
+ # containing 'icc version'. The line "grep -v 'icc.orig version'" causes
+ # the discarding of any output containing 'icc.orig version'.
+ # The cc_version for icc is correctly determined
# and flags added in the intel-flags script.
cc_version="`$CC $CFLAGS $H5_CFLAGS -v 2>&1 | grep -v 'PathScale' |\
grep -v 'icc version' |\
+ grep -v 'icc.orig version' |\
grep 'gcc version' | sed 's/.*gcc version \([-a-z0-9\.]*\).*/\1/'`"
cc_vendor=`echo $cc_version |sed 's/\([a-z]*\).*/\1/'`
cc_version=`echo $cc_version |sed 's/[-a-z]//g'`