From 144e900ee0a95115f9845c2cc33a65fa401fd1d1 Mon Sep 17 00:00:00 2001 From: eschnett Date: Tue, 28 Jun 2011 22:14:38 +0000 Subject: Do not build shared libraries if we link statically. This avoids problems if shared libraries don't work on a system. git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/HDF5/trunk@39 fb53df36-e548-4a1e-8150-ab98cbd5e786 --- HDF5.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/HDF5.sh b/HDF5.sh index b1f2462..8c31ddc 100644 --- a/HDF5.sh +++ b/HDF5.sh @@ -144,7 +144,12 @@ if [ -z "${HDF5_DIR}" -o "${HDF5_DIR}" = 'BUILD' ]; then echo "HDF5: Configuring..." cd ${NAME} - ./configure --prefix=${HDF5_DIR} --with-zlib=${ZLIB_DIR} --enable-cxx=${HDF5_ENABLE_CXX} $(if [ -n "${FC}" ]; then echo '' "--enable-fortran=${HDF5_ENABLE_FORTRAN}"; fi) + # Do not build Fortran API if it has been disabled, or if + # there is no Fortran 90 compiler. + # Do not build C++ API if it has been disabled. + # Do not build shared library executables if we want to link + # statically. + ./configure --prefix=${HDF5_DIR} --with-zlib=${ZLIB_DIR} --enable-cxx=${HDF5_ENABLE_CXX} $(if [ -n "${FC}" ]; then echo '' "--enable-fortran=${HDF5_ENABLE_FORTRAN}"; fi) $(if echo '' "${LDFLAGS}" | grep -q '[-]static'; then echo '' '--disable-shared --enable-static-exec'; fi) echo "HDF5: Building..." ${MAKE} -- cgit v1.2.3