diff options
author | James Laird <jlaird@hdfgroup.org> | 2006-11-09 17:39:33 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2006-11-09 17:39:33 (GMT) |
commit | 227a79d5513e305d047020d96b1ac8b4f8bf44b5 (patch) | |
tree | d1f6d048ca28cd6ca3b4b41db4322572cdb75320 /configure.in | |
parent | e6ef14ff32eb0bf62672dc3a94b515ddc17cbf68 (diff) | |
download | hdf5-227a79d5513e305d047020d96b1ac8b4f8bf44b5.zip hdf5-227a79d5513e305d047020d96b1ac8b4f8bf44b5.tar.gz hdf5-227a79d5513e305d047020d96b1ac8b4f8bf44b5.tar.bz2 |
[svn-r12886] Fix (hopefully) for last night's failures on tg-login3.
It seems that the latest version of libtool is linking against shared versions
of the szip libraries in Fortran, rather than the static versions. ifort
doesn't support shared libraries at all.
To solve the problem, we avoid shared libraries entirely unless we're
building shared Fortran libraries ourselves.
If libtool always behaves like this now, it may cause similar problems on
other machines. If you notice that a machine is breaking when it links against
a shared library, let me know.
Tested on kagiso; nothing new is broken. If Albert has time this afternoon
I'll ask him to test on tg-login3 as well.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.in b/configure.in index ff618c7..ab0437d 100644 --- a/configure.in +++ b/configure.in @@ -742,6 +742,12 @@ dnl HP F90 v2.4 dnl Intel Fortran Compiler 8.1 dnl If any of these compilers is being used, disable shared libraries for dnl Fortran. + +dnl Disable shared libraries in Fortran by default (sometimes libtool will +dnl try to link against other shared libraries even though HDF5 is built +dnl as a static library). +H5_FORTRAN_SHARED="no" + if test "X${HDF_FORTRAN}" = "Xyes" && test "X${enable_shared}" != "Xno"; then H5_FORTRAN_SHARED="yes" |