summaryrefslogtreecommitdiffstats
path: root/config/gnu-cxxflags
diff options
context:
space:
mode:
Diffstat (limited to 'config/gnu-cxxflags')
-rw-r--r--config/gnu-cxxflags8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/gnu-cxxflags b/config/gnu-cxxflags
index f87ef8e..46fd048 100644
--- a/config/gnu-cxxflags
+++ b/config/gnu-cxxflags
@@ -105,7 +105,7 @@ case "$cxx_vendor-$cxx_version" in
g++-[34].*)
PROD_CXXFLAGS=
;;
- g++-5.*)
+ g++-[56].*)
PROD_CXXFLAGS="-fstdarg-opt"
;;
*)
@@ -117,7 +117,7 @@ case "$cxx_vendor-$cxx_version" in
# NDEBUG is handled explicitly by the configure script
# -g is hanled by the symbols flags
case "$cxx_vendor-$cxx_version" in
- g++-5.*)
+ g++-[56].*)
DEBUG_CXXFLAGS="-ftrapv -fno-common"
;;
*)
@@ -138,7 +138,7 @@ case "$cxx_vendor-$cxx_version" in
HIGH_OPT_CXXFLAGS="-O3"
DEBUG_OPT_CXXFLAGS=
;;
- g++-5.*)
+ g++-[56].*)
HIGH_OPT_CXXFLAGS="-O3"
DEBUG_OPT_CXXFLAGS="-Og"
;;
@@ -163,7 +163,7 @@ case "$cxx_vendor-$cxx_version" in
# Closer to the g++ 5.2 release, we should check for additional flags to
# include and break it out into it's own section, like the other versions
# below. -QAK
- g++-5*)
+ g++-[56]*)
# Append warning flags from gcc-3* case
H5_CXXFLAGS="$H5_CXXFLAGS -Wfloat-equal -Wmissing-format-attribute"