summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-07-08 12:16:03 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-07-08 12:16:03 (GMT)
commit4b122440910911a51e8440d37db27960476d4d11 (patch)
tree70ff54aaf1b32ffe230484afa3b1c783dddf3aa6
parentc80d6fe451bd652cf9998e89d6a2de9e8a951fd8 (diff)
parent188c43b8ee78d830c22f30fb9adb802e46722fcd (diff)
downloadhdf5-4b122440910911a51e8440d37db27960476d4d11.zip
hdf5-4b122440910911a51e8440d37db27960476d4d11.tar.gz
hdf5-4b122440910911a51e8440d37db27960476d4d11.tar.bz2
Merging in latest from upstream (HDFFV/hdf5:refs/heads/develop)
* commit '188c43b8ee78d830c22f30fb9adb802e46722fcd': Change load path in libhdf5_java.dylib to unversioned libhdf5.dylib for junit tests on Macs. Fixes Autotools builds on Solaris after monotonic timer changes
-rw-r--r--config/solaris21
-rw-r--r--configure.ac7
-rw-r--r--java/test/junit.sh.in2
3 files changed, 24 insertions, 6 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
diff --git a/configure.ac b/configure.ac
index d7e3cb5..e16cbba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1249,6 +1249,13 @@ case "$host_cpu-$host_vendor-$host_os" in
## VFD on Linux systems.
H5_CPPFLAGS="-D_GNU_SOURCE $H5_CPPFLAGS"
;;
+
+ *solaris*)
+ ## Solaris also needs _POSIX_C_SOURCE set correctly to pick up
+ ## clock_gettime().
+ H5_CPPFLAGS="-D_POSIX_C_SOURCE=200112L $H5_CPPFLAGS"
+ H5_CPPFLAGS="-D_GNU_SOURCE $H5_CPPFLAGS"
+ ;;
esac
## Need to add the AM_ and H5_ into CFLAGS/CPPFLAGS to make them visible
diff --git a/java/test/junit.sh.in b/java/test/junit.sh.in
index cbc57e9..62a5104 100644
--- a/java/test/junit.sh.in
+++ b/java/test/junit.sh.in
@@ -151,7 +151,7 @@ COPY_LIBFILES_TO_BLDLIBDIR()
install_name_tool -add_rpath @loader_path libhdf5_java.dylib; \
exist_path=` otool -l libhdf5_java.dylib | grep libhdf5 | grep -v java | awk '{print $2}'`; \
echo $exist_path; \
- install_name_tool -change $exist_path @rpath/libhdf5.1000.dylib libhdf5_java.dylib)
+ install_name_tool -change $exist_path @rpath/libhdf5.dylib libhdf5_java.dylib)
fi
# copy jar files. Used -f to make sure get a new copy
for tstfile in $COPY_JARTESTFILES