summaryrefslogtreecommitdiffstats
path: root/test/testlibinfo.sh.in
diff options
context:
space:
mode:
authorMike McGreevy <mamcgree@hdfgroup.org>2011-04-14 21:21:59 (GMT)
committerMike McGreevy <mamcgree@hdfgroup.org>2011-04-14 21:21:59 (GMT)
commit98362b664c5299950edaa85448b219b372106b0b (patch)
treea5d95898916b57abc11b6dab2e53683be55ca31a /test/testlibinfo.sh.in
parenta45c7424b2d849c8876d4681d0815367f6e5c7f6 (diff)
downloadhdf5-98362b664c5299950edaa85448b219b372106b0b.zip
hdf5-98362b664c5299950edaa85448b219b372106b0b.tar.gz
hdf5-98362b664c5299950edaa85448b219b372106b0b.tar.bz2
[svn-r20504] Purpose:
General shared library improvements for CYGWIN / AIX Description: Shared libraries are disabled on both CYGWIN and AIX due to inability to build them correctly. Part of the problem in both of these situations is the lack of the libtool flag -no-undefined, which tells libtool that all needed symbols are defined at link time (a requirement on these systems) and that it's okay to build shared libraries. Another problem are lack of dependencies between wrapper libraries and core C HDF5 library. This patch addresses both of these by fixing configure to add in -no-undefined flag for libtool during linking and adds automake dependencies in the Makefile.am files. After testing, both CYGWIN and AIX now generate shared libraries, but there are still some test failures in each. (cache_api, dt_arith, and testerror.sh on CYGWIN, and fortran tests on AIX). Even though the shared libraries are not quite perfect, this is a general improvement to what we had before, so I'm applying the patch anyways. Note that default behavior of shared libraries on these systems being disabled has NOT been changed and requires the use of the --enable-unsupported to attempt to build them. We will need to address the test failures in each architecture prior to formally supporting shared libraries on each. Tested: h5committested & CYGWIN tested (on bangan) (AIX tested by Albert on bp-login2)
Diffstat (limited to 'test/testlibinfo.sh.in')
-rw-r--r--test/testlibinfo.sh.in22
1 files changed, 3 insertions, 19 deletions
diff --git a/test/testlibinfo.sh.in b/test/testlibinfo.sh.in
index 5bcd300..91eda16 100644
--- a/test/testlibinfo.sh.in
+++ b/test/testlibinfo.sh.in
@@ -74,27 +74,11 @@ fi
# built too.
if [ -n $Shared_Lib ]; then
h5libdir=../src/.libs
+ shlib=$(grep dlname ../src/libhdf5.la | sed -e "s/dlname='//" -e "s/'//")
else
h5libdir=../src
fi
-# Different OS uses different naming for shared libs.
-case `uname -s` in
- Darwin) # MacOS
- shlibsuffix=.dylib
- break
- ;;
- AIX) # AIX .a is already a shared lib
- # this is a temporary patch.
- shlibsuffix=.a
- break
- ;;
- *) # default
- shlibsuffix=.so
- break
- ;;
-esac
-
h5libsettings=../src/libhdf5.settings
# Part 1:
@@ -102,9 +86,9 @@ h5libsettings=../src/libhdf5.settings
# libhdf5.settings file.
# Check dynamic library file if built.
if [ x-$Shared_Lib = x-yes ]; then
- CHECK_LIBINFO ${h5libdir}/libhdf5${shlibsuffix}
+ CHECK_LIBINFO ${h5libdir}/${shlib}
else
- SKIP ${h5libdir}/libhdf5${shlibsuffix}
+ SKIP shlib
fi
# Though rare, libhdf5.a may not have been built.