diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-07-07 21:38:47 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-07-07 21:38:47 (GMT) |
commit | 188c43b8ee78d830c22f30fb9adb802e46722fcd (patch) | |
tree | 70ff54aaf1b32ffe230484afa3b1c783dddf3aa6 /config | |
parent | c5af29321baa77d1c5926bd1e0d16d01128de6b5 (diff) | |
parent | d9105b2fcf04f36ea348bf9726a49c05cacc0b78 (diff) | |
download | hdf5-188c43b8ee78d830c22f30fb9adb802e46722fcd.zip hdf5-188c43b8ee78d830c22f30fb9adb802e46722fcd.tar.gz hdf5-188c43b8ee78d830c22f30fb9adb802e46722fcd.tar.bz2 |
Merge pull request #2680 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:develop_minor to develop
* commit 'd9105b2fcf04f36ea348bf9726a49c05cacc0b78':
Fixes Autotools builds on Solaris after monotonic timer changes
Diffstat (limited to 'config')
-rw-r--r-- | config/solaris | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/config/solaris b/config/solaris index 656fee1..a424503 100644 --- a/config/solaris +++ b/config/solaris @@ -29,7 +29,9 @@ fi # Try solaris native compiler flags if test "X-" = "X-$cc_flags_set"; then - H5_CFLAGS="$H5_CFLAGS -erroff=%none -DBSD_COMP" + # HDF5 must be built with a C99 compiler on Solaris + # -erroff=%none turns on all warnings + H5_CFLAGS="$H5_CFLAGS -xc99=all -erroff=%none" # Production # NDEBUG is handled explicitly by the configure script @@ -41,17 +43,26 @@ if test "X-" = "X-$cc_flags_set"; then DEBUG_CFLAGS= # Symbols + # -g produces output for dbx, NOT gdb. You can use "gdb on" from + # inside gdb to use gdb commands if you need to debug. + # If you want a LOT of debugging information (at the expense of + # really slow code), try using -g3. That will even let you debug + # into macros. + # -s strips symbols, as in gcc NO_SYMBOLS_CFLAGS="-s" SYMBOLS_CFLAGS="-g" # Profile + # This produces profiling output for gprof. If you want to use + # the Solaris profiler, use -xprofile instead. PROFILE_CFLAGS="-xpg" # Optimization - # -g produces rather slow code. "-g -O" produces much faster code with some - # loss of debugger functions such as not able to print local variables. - HIGH_OPT_CFLAGS="-O" - DEBUG_OPT_CFLAGS="-O" + # -O has switched to -xO{1|2|3|4|5}. -xO3 is probably a good compromise + # for the daily tests, but you might want to switch to -xO2 or lower + # if you are actively debugging. + HIGH_OPT_CFLAGS="-xO5" + DEBUG_OPT_CFLAGS="-xO3" NO_OPT_CFLAGS= cc_flags_set=yes |