Changeset 24961


Ignore:
Timestamp:
06/03/20 15:22:20 (5 years ago)
Author:
jdquinn
Message:

CHG: Now searching for libgfortran rather than hardcoding.

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

Legend:

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

    r24824 r24961  
    1010## Environment
    1111#
    12 export BLAS_LIBS="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lfblas /usr/local/Cellar/gcc/9.3.0/lib/gcc/9/libgfortran.a /usr/local/Cellar/gcc/9.3.0/lib/gcc/9/libquadmath.a /usr/local/Cellar/gcc/9.3.0/lib/gcc/9/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
     12LIBGFORTRAN=$(find /usr/local/Cellar -name libgfortran.a | head -n 1)
     13LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
     14
     15export 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
    1316export BOOST_ROOT=${ISSM_DIR}/externalpackages/boost/install
    1417export DAK_BUILD=${DAK_ROOT}/build
    1518export DAK_INSTALL=${DAK_ROOT}/install
    1619export DAK_SRC=${DAK_ROOT}/src
    17 export LAPACK_LIBS="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lflapack /usr/local/Cellar/gcc/9.3.0/lib/gcc/9/libgfortran.a /usr/local/Cellar/gcc/9.3.0/lib/gcc/9/libquadmath.a /usr/local/Cellar/gcc/9.3.0/lib/gcc/9/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
     20export 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
    1821
    1922# Cleanup
  • TabularUnified issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh

    r24824 r24961  
    1010## Environment
    1111#
    12 export BLAS_LIBS="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lfblas -L/usr/local/Cellar/gcc/9.3.0/lib/gcc/9 -lgfortran" # Need to export BLAS_LIBS *and* pass it as an option to CMake to ensure that external packages also find it
     12LIBGFORTRAN=$(find /usr/local/Cellar -name libgfortran.* | head -n 1)
     13LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
     14
     15export BLAS_LIBS="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lfblas -L${LIBGFORTRAN_ROOT} -lgfortran" # Need to export BLAS_LIBS *and* pass it as an option to CMake to ensure that external packages also find it
    1316export BOOST_ROOT=${ISSM_DIR}/externalpackages/boost/install
    1417export DAK_BUILD=${DAK_ROOT}/build
     
    1619export DAK_SRC=${DAK_ROOT}/src
    1720export GSL_HOME=${ISSM_DIR}/externalpackages/gsl/install
    18 export LAPACK_LIBS="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lflapack -L/usr/local/Cellar/gcc/9.3.0/lib/gcc/9 -lgfortran" # Need to export LAPACK_LIBS *and* pass it as an option to CMake to ensure that external packages also find it
     21export LAPACK_LIBS="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lflapack -L${LIBGFORTRAN_ROOT} -lgfortran" # Need to export LAPACK_LIBS *and* pass it as an option to CMake to ensure that external packages also find it
    1922
    2023# Cleanup
Note: See TracChangeset for help on using the changeset viewer.