Changeset 25226


Ignore:
Timestamp:
07/07/20 16:56:59 (5 years ago)
Author:
jdquinn
Message:

BUG: Prefer user-compiled copy of libgfortran over one installed via package manager.

Location:
issm/trunk-jpl/externalpackages/dakota
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh

    r25194 r25226  
    1010## Environment
    1111#
    12 LIBGFORTRAN=$(mdfind -onlyin /usr -name libgfortran | grep -n libgfortran.a | grep -v i386 | sed "s/[0-9]*://g")
     12
     13# Find libgfortran and libgcc so we do not have to hardcode them
     14#
     15# NOTE: Assumes user installed gfortran via Homebrew
     16#
     17# TODO: Refactor this to work with other gfortran installations.
     18#
     19LIBGFORTRAN=$(mdfind -onlyin /usr -name libgfortran | grep -n libgfortran.a | grep -v i386 | sed "s/[0-9]*://g" | head -1) # Should retrieve a copy of gfortran that is compiled from source before returning one that is installed via package manager
    1320LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
     21LIBGCC=$(mdfind -onlyin ${LIBGFORTRAN_ROOT} -name libgcc | grep -n libgcc.a | grep -v i386 | sed "s/[0-9]*://g" | head -1) # Should retrieve a copy of gfortran that is compiled from source before returning one that is installed via package manager
    1422
    15 export BLAS_LIBS="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lfblas ${LIBGFORTRAN_ROOT}/libgfortran.a ${LIBGFORTRAN_ROOT}/libquadmath.a ${LIBGFORTRAN_ROOT}/gcc/x86_64-apple-darwin15/9.3.0/libgcc.a" # Need to export BLAS_LIBS *and* pass it as an option to CMake to ensure that external packages also find it
     23export BLAS_LIBS="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lfblas ${LIBGFORTRAN_ROOT}/libgfortran.a ${LIBGFORTRAN_ROOT}/libquadmath.a ${LIBGCC}" # Need to export BLAS_LIBS *and* pass it as an option to CMake to ensure that external packages also find it
    1624export BOOST_ROOT=${ISSM_DIR}/externalpackages/boost/install
    1725export DAK_BUILD=${DAK_ROOT}/build
     
    1927export DAK_SRC=${DAK_ROOT}/src
    2028export GSL_HOME=${ISSM_DIR}/externalpackages/gsl/install
    21 export LAPACK_LIBS="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lflapack ${LIBGFORTRAN_ROOT}/libgfortran.a ${LIBGFORTRAN_ROOT}/libquadmath.a ${LIBGFORTRAN_ROOT}/gcc/x86_64-apple-darwin15/9.3.0/libgcc.a" # Need to export LAPACK_LIBS *and* pass it as an option to CMake to ensure that external packages also find it
     29export LAPACK_LIBS="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lflapack ${LIBGFORTRAN_ROOT}/libgfortran.a ${LIBGFORTRAN_ROOT}/libquadmath.a ${LIBGCC}" # Need to export LAPACK_LIBS *and* pass it as an option to CMake to ensure that external packages also find it
    2230
    2331# Cleanup
  • issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh

    r25184 r25226  
    1010## Environment
    1111#
    12 LIBGFORTRAN=$(mdfind -onlyin /usr -name libgfortran | grep -n libgfortran.a | grep -v i386 | sed "s/[0-9]*://g")
     12# Find libgfortran and so we do not have to hardcode it
     13#
     14# NOTE:
     15# - Assumes user installed gfortran via Homebrew.
     16# - Searches for libgfortran.a as it is easier to find it.
     17#
     18# TODO: Refactor this to work with other gfortran installations.
     19#
     20LIBGFORTRAN=$(mdfind -onlyin /usr -name libgfortran | grep -n libgfortran.a | grep -v i386 | sed "s/[0-9]*://g" | head -1) # Should retrieve a copy of gfortran that is compiled from source before returning one that is installed via package manager
    1321LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
    1422
Note: See TracChangeset for help on using the changeset viewer.