diff options
author | eschnett <eschnett@fb53df36-e548-4a1e-8150-ab98cbd5e786> | 2011-06-28 22:14:38 +0000 |
---|---|---|
committer | eschnett <eschnett@fb53df36-e548-4a1e-8150-ab98cbd5e786> | 2011-06-28 22:14:38 +0000 |
commit | 144e900ee0a95115f9845c2cc33a65fa401fd1d1 (patch) | |
tree | a55731a01fe094dcaf4e3da078fe66c50134e4ea | |
parent | d080252b4c13c59fbcf7bcfd14722f84eeb2c80d (diff) |
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
-rw-r--r-- | HDF5.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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} |