summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorlrknox <lrknox>2017-06-02 18:14:37 (GMT)
committerlrknox <lrknox>2017-06-02 18:14:37 (GMT)
commit9e705cdcdbbbbd099f9348ccc70d78088f157d0c (patch)
tree3a8130dcdce2ff585942313b08d97df0010eda26 /configure
parent2607f751d363630b0475d2442c7853cc99dd3a8a (diff)
downloadhdf5-9e705cdcdbbbbd099f9348ccc70d78088f157d0c.zip
hdf5-9e705cdcdbbbbd099f9348ccc70d78088f157d0c.tar.gz
hdf5-9e705cdcdbbbbd099f9348ccc70d78088f157d0c.tar.bz2
Propagate .so number changes to Makefile.ins with bin/reconfigure.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 13 insertions, 6 deletions
diff --git a/configure b/configure
index 8fc3a8b..6e87f81 100755
--- a/configure
+++ b/configure
@@ -7703,14 +7703,13 @@ if test "X${HDF_FORTRAN}" = "Xyes" && test "X${enable_shared}" != "Xno"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if shared Fortran libraries are supported" >&5
$as_echo_n "checking if shared Fortran libraries are supported... " >&6; }
H5_FORTRAN_SHARED="yes"
-
- ## Disable fortran shared libraries on Mac. (MAM - 03/30/11)
-
+ ## tell libtool to do the right thing with COMMON symbols, this fixes
+ ## corrupt values with COMMON and EQUIVALENCE when building shared
+ ## Fortran libraries on OSX with gnu and Intel compilers (HDFFV-2772).
case "`uname`" in
Darwin*)
- H5_FORTRAN_SHARED="no"
- CHECK_WARN="Shared Fortran libraries not currently supported on Mac."
- ;;
+ H5_LDFLAGS="$H5_LDFLAGS -Wl,-commons,use_dylibs"
+ ;;
esac
## Report results of check(s)
@@ -33688,6 +33687,14 @@ chmod 755 tools/misc/h5cc
if test "X$HDF_FORTRAN" = "Xyes"; then
chmod 755 fortran/src/h5fc
+ ## libtool does not pass the correct argument linker (wl=) for the Intel Fortran compiler
+ ## on OS X, which is needed when building shared libraries on OS X. This script
+ ## replaces the 3rd occurrence, which is for Fortran, of wl="" with wl="-Wl," (HDFFV-2772)
+ case "`uname`" in
+ Darwin*)
+ cat libtool | awk '/wl=\"/{c++;if(c==3){sub("wl=\"\"","wl=\"-Wl,\"");c=0}}1' > libtool.tmp && mv -f libtool.tmp libtool && chmod 755 libtool
+ ;;
+ esac
fi
if test "X$HDF_CXX" = "Xyes"; then