diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2021-01-06 14:13:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-06 14:13:59 (GMT) |
commit | 0a7296663b49ce4710ebe57a7ceae21fa3571ff1 (patch) | |
tree | 3d1aef6dfda295bb15263470c841512c29feae52 /java/examples/datatypes | |
parent | ca464c3fc288674964d33e42aec0d05ce9277591 (diff) | |
download | hdf5-0a7296663b49ce4710ebe57a7ceae21fa3571ff1.zip hdf5-0a7296663b49ce4710ebe57a7ceae21fa3571ff1.tar.gz hdf5-0a7296663b49ce4710ebe57a7ceae21fa3571ff1.tar.bz2 |
Hdf5 1 10 - Modify temporary rpath for testing in java example scripts (#243)
* close #195. (#196)
* Update HDF5PluginMacros.cmake
* Update HDF5PluginMacros.cmake
* Modify temporary rpath for testing in java example scripts. (#230)
Co-authored-by: H. Joe Lee <hyoklee@hdfgroup.org>
Diffstat (limited to 'java/examples/datatypes')
-rw-r--r-- | java/examples/datatypes/JavaDatatypeExample.sh.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/java/examples/datatypes/JavaDatatypeExample.sh.in b/java/examples/datatypes/JavaDatatypeExample.sh.in index 447512a..6a4581a 100644 --- a/java/examples/datatypes/JavaDatatypeExample.sh.in +++ b/java/examples/datatypes/JavaDatatypeExample.sh.in @@ -15,6 +15,7 @@ top_builddir=@top_builddir@ top_srcdir=@top_srcdir@ srcdir=@srcdir@ +IS_DARWIN="@H5_IS_DARWIN@" TESTNAME=EX_Datatypes EXIT_SUCCESS=0 @@ -33,8 +34,8 @@ nerrors=0 # where the libs exist HDFLIB_HOME="$top_srcdir/java/lib" -BLDLIBDIR="$top_builddir/hdf5/lib" BLDDIR="." +BLDLIBDIR="$BLDDIR/testlibs" HDFTEST_HOME="$top_srcdir/java/examples/datatypes" JARFILE=jar@PACKAGE_TARNAME@-@PACKAGE_VERSION@.jar TESTJARFILE=jar@PACKAGE_TARNAME@datatypes.jar @@ -110,6 +111,13 @@ COPY_LIBFILES_TO_BLDLIBDIR() fi fi done + if [ "$IS_DARWIN" = "yes" ]; then + (cd $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.dylib libhdf5_java.dylib) + fi # copy jar files. Used -f to make sure get a new copy for tstfile in $COPY_JARTESTFILES do |