Changeset 25226
- Timestamp:
- 07/07/20 16:56:59 (5 years ago)
- 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 10 10 ## Environment 11 11 # 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 # 19 LIBGFORTRAN=$(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 13 20 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 21 LIBGCC=$(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 14 22 15 export BLAS_LIBS="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lfblas ${LIBGFORTRAN_ROOT}/libgfortran.a ${LIBGFORTRAN_ROOT}/libquadmath.a ${LIBG FORTRAN_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 it23 export 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 16 24 export BOOST_ROOT=${ISSM_DIR}/externalpackages/boost/install 17 25 export DAK_BUILD=${DAK_ROOT}/build … … 19 27 export DAK_SRC=${DAK_ROOT}/src 20 28 export 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 ${LIBG FORTRAN_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 it29 export 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 22 30 23 31 # Cleanup -
issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh
r25184 r25226 10 10 ## Environment 11 11 # 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 # 20 LIBGFORTRAN=$(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 13 21 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 14 22
Note:
See TracChangeset
for help on using the changeset viewer.