summaryrefslogtreecommitdiffstats
path: root/config/gnu-fflags
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2020-04-30 21:32:23 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2020-04-30 21:32:23 (GMT)
commite392416bdf71dcbf360ad8a2192e03425032cbe0 (patch)
tree11aa11556b1c66316a016a6d3291c9a09098b8fe /config/gnu-fflags
parent0801609ac2acba1b221f5cc29623d6d58eee97d8 (diff)
downloadhdf5-e392416bdf71dcbf360ad8a2192e03425032cbe0.zip
hdf5-e392416bdf71dcbf360ad8a2192e03425032cbe0.tar.gz
hdf5-e392416bdf71dcbf360ad8a2192e03425032cbe0.tar.bz2
Update to use optimization flags, C++ error flags, and correct
libhdf5.settings.in to remove unworkable changes.
Diffstat (limited to 'config/gnu-fflags')
-rw-r--r--config/gnu-fflags31
1 files changed, 15 insertions, 16 deletions
diff --git a/config/gnu-fflags b/config/gnu-fflags
index eb3519c..07038ab 100644
--- a/config/gnu-fflags
+++ b/config/gnu-fflags
@@ -89,20 +89,32 @@ if test "X-gfortran" = "X-$f9x_vendor"; then
H5_FCFLAGS="$H5_FCFLAGS $arch"
+ ################
+ # Optimization #
+ ################
+
+ if test $f9x_vers_major -le 4; then
+ HIGH_OPT_FCFLAGS="-O3"
+ DEBUG_OPT_FCFLAGS=
+ else
+ HIGH_OPT_FCFLAGS="-O3"
+ DEBUG_OPT_FCFLAGS="-Og"
+ fi
+
##############
# Production #
##############
- PROD_FCFLAGS=
+ PROD_FCFLAGS=$HIGH_OPT_FCFLAGS
#########
# Debug #
#########
if test $f9x_vers_major -ge 5 -o $f9x_vers_major -eq 4 -a $f9x_vers_minor -ge 5; then
- DEBUG_FCFLAGS="-fcheck=all"
+ DEBUG_FCFLAGS=$DEBUG_OPT_FCFLAGS "-fcheck=all"
else
- DEBUG_FCFLAGS="-fbounds-check"
+ DEBUG_FCFLAGS=$DEBUG_OPT_FCFLAGS "-fbounds-check"
fi
###########
@@ -118,19 +130,6 @@ if test "X-gfortran" = "X-$f9x_vendor"; then
PROFILE_FCFLAGS="-pg"
- ################
- # Optimization #
- ################
-
- if test $f9x_vers_major -le 4; then
- HIGH_OPT_FCFLAGS="-O3"
- DEBUG_OPT_FCFLAGS=
- else
- HIGH_OPT_FCFLAGS="-O3"
- DEBUG_OPT_FCFLAGS="-Og"
- fi
- NO_OPT_FCFLAGS="-O0"
-
############
# Warnings #
############