diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2020-05-04 16:32:58 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2020-05-04 16:32:58 (GMT) |
commit | e49d4fd62f1f27d9dd5a41fc77013df858ff9ed8 (patch) | |
tree | cc4ecb594f86826a24f9250e2ad93ad569a7cf8d /config/gnu-cxxflags | |
parent | a4553b35e1e2dae2e5f99cfd2286b1c89f84b43d (diff) | |
download | hdf5-e49d4fd62f1f27d9dd5a41fc77013df858ff9ed8.zip hdf5-e49d4fd62f1f27d9dd5a41fc77013df858ff9ed8.tar.gz hdf5-e49d4fd62f1f27d9dd5a41fc77013df858ff9ed8.tar.bz2 |
Fix ifort warning flag.
Restore AC_DEFUN([PAC_PROG_FC_DEFAULT_REALisDBLE] in m4/aclocal_fc.m4.
Add --enable-symbols, --enable-profiling, and --enable-optimization
options to autotools configure; all configure flags for
--enable-production and --disable-production should match HDF5 1.10 and
1.12 production and debug default flags.
Diffstat (limited to 'config/gnu-cxxflags')
-rw-r--r-- | config/gnu-cxxflags | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/config/gnu-cxxflags b/config/gnu-cxxflags index 99480c5..b2ef36d 100644 --- a/config/gnu-cxxflags +++ b/config/gnu-cxxflags @@ -121,27 +121,15 @@ if test "X-g++" = "X-$cxx_vendor"; then # C++-specific H5_CXXFLAGS="$H5_CXXFLAGS $arch" - ################ - # Optimization # - ################ - - if test $cxx_vers_major -le 4; then - HIGH_OPT_CXXFLAGS="-O3" - DEBUG_OPT_CXXFLAGS= - else - HIGH_OPT_CXXFLAGS="-O3" - DEBUG_OPT_CXXFLAGS="-Og" - fi - ############## # Production # ############## # NDEBUG is handled explicitly by the configure script if test $cxx_vers_major -le 4; then - PROD_CXXFLAGS=$HIGH_OPT_CXXFLAGS + PROD_CXXFLAGS= else - PROD_CXXFLAGS=$HIGH_OPT_CXXFLAGS "-fstdarg-opt" + PROD_CXXFLAGS="-fstdarg-opt" fi ######### @@ -151,9 +139,9 @@ if test "X-g++" = "X-$cxx_vendor"; then # NDEBUG is handled explicitly by the configure script # -g is handled by the symbols flags if test $cxx_vers_major -le 4; then - DEBUG_CXXFLAGS=$DEBUG_OPT_CXXFLAGS + DEBUG_CXXFLAGS= else - DEBUG_CXXFLAGS=$DEBUG_OPT_CXXFLAGS "-ftrapv -fno-common" + DEBUG_CXXFLAGS="-ftrapv -fno-common" fi ########### @@ -169,6 +157,19 @@ if test "X-g++" = "X-$cxx_vendor"; then PROFILE_CXXFLAGS="-pg" + ################ + # Optimization # + ################ + + if test $cxx_vers_major -le 4; then + HIGH_OPT_CXXFLAGS="-O3" + DEBUG_OPT_CXXFLAGS= + else + HIGH_OPT_CXXFLAGS="-O3" + DEBUG_OPT_CXXFLAGS="-Og" + fi + NO_OPT_CXXFLAGS="-O0" + ############ # Warnings # ############ |