summaryrefslogtreecommitdiffstats
path: root/config/ibm-flags
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-01-27 21:45:23 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-01-27 21:45:23 (GMT)
commit1454a458262dd012c94f56ccc55ccbbe57b63399 (patch)
tree3924efe3b45657d02b8dcc394df30626591a6610 /config/ibm-flags
parent7afa7bb6afd1cf4daee58010e4f9411262abeab9 (diff)
downloadhdf5-1454a458262dd012c94f56ccc55ccbbe57b63399.zip
hdf5-1454a458262dd012c94f56ccc55ccbbe57b63399.tar.gz
hdf5-1454a458262dd012c94f56ccc55ccbbe57b63399.tar.bz2
[svn-r28996] Autotools configure updates to allow separation of build type, debug
symbols, asserts, profiling, and optimization. Also much refactoring, improved help, and --enable-<foo> options will now emit errors on nonsense (e.g.: --enable-foo="asdfasdf"). The libhdf5.settings.in file was also reformatted. Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 serial and parallel autotools w/ various options
Diffstat (limited to 'config/ibm-flags')
-rw-r--r--config/ibm-flags29
1 files changed, 24 insertions, 5 deletions
diff --git a/config/ibm-flags b/config/ibm-flags
index 462372d..731968d 100644
--- a/config/ibm-flags
+++ b/config/ibm-flags
@@ -55,19 +55,38 @@ if test "XL" = "$cc_vendor"; then
# Turn off shared lib option. It causes some test suite to fail.
enable_shared="${enable_shared:-no}"
+
# Make sure this is applied to other API compile options such as C++.
AM_CFLAGS="$AM_CFLAGS"
+
# -qflag=w:w makes the lowest level of reported compile issues to be "warning"
# instead of "information". This suppresses a very large number of messages
# concerning the portability of __inline__.
H5_CFLAGS="-qlanglvl=stdc99 -qflag=w:w $H5_CFLAGS"
- DEBUG_CFLAGS="-g -qfullpath"
- DEBUG_CPPFLAGS=
- # -O causes test/dtypes to fail badly. Turn it off for now.
- PROD_CFLAGS=""
+
+ # Produciton
+ PROD_CFLAGS=
PROD_CPPFLAGS=
- PROFILE_CFLAGS="-g -qfullpath -pg"
+
+ # Debug
+ # NDEBUG is handled explicitly in configure
+ DEBUG_CFLAGS="-qfullpath"
+ DEBUG_CPPFLAGS=
+
+ # Symbols
+ SYMBOL_CFLAGS="-g"
+ SYMBOL_CPPFLAGS=
+
+ # Profiling
+ PROFILE_CFLAGS="-pg"
PROFILE_CPPFLAGS=
+
+ # Optimization
+ # -O causes test/dtypes to fail badly. Turn it off for now.
+ HIGH_OPT_CFLAGS=
+ DEBUG_OPT_CFLAGS=
+ NO_OPT_CFLAGS=
+
# Flags are set
cc_flags_set=yes
fi