Changeset 27194
- Timestamp:
- 08/04/22 14:18:13 (3 years ago)
- Location:
- issm/trunk-jpl/externalpackages
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/dakota/install-6.2-linux-static.sh
r26250 r27194 9 9 PREFIX="${ISSM_DIR}/externalpackages/dakota/install" # Set to location where external package should be installed 10 10 11 # Find libgfortran and libgcc so we do not have to hardcode them 12 # 13 # TODO: 14 # - Move this to etc/environment.sh 15 # 16 LIBGFORTRAN=$(find /usr -name libgfortran* | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 17 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 18 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* | egrep -n libgcc.a | sed "s/[0-9]*://g" | head -1 19 11 20 ## Environment 12 21 # 13 export BLAS_LIBS="-L${BLAS_ROOT}/lib -lfblas -L/usr/lib/x86_64-linux-gnu -lgfortran" # Need to export BLAS_LIBS *and* pass it as an option to CMake to ensure that external packages also find it 14 export CXXFLAGS='-std=c++98' # Setting CXXFLAGS to deal with C++11 incompatibility with MATLAB's Boost (absolutely necessary for this version) 22 export BLAS_LIBS="-L${BLAS_ROOT}/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 15 23 export DAK_BUILD=${ISSM_DIR}/externalpackages/dakota/build # DO NOT CHANGE THIS 16 24 export DAK_INSTALL=${PREFIX} # DO NOT CHANGE THIS 17 25 export DAK_SRC=${ISSM_DIR}/externalpackages/dakota/src # DO NOT CHANGE THIS 18 export LAPACK_LIBS="-L${LAPACK_ROOT}/lib -lflapack -L/usr/lib/x86_64-linux-gnu -lgfortran" # Need to export LAPACK_LIBS *and* pass it as an option to CMake to ensure that external packages also find it26 export LAPACK_LIBS="-L${LAPACK_ROOT}/lib -lflapack -L/usr/lib/x86_64-linux-gnu ${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 19 27 20 28 # Cleanup … … 54 62 -DCMAKE_CXX_COMPILER=${MPI_HOME}/bin/mpicxx \ 55 63 -DCMAKE_CXX_FLAGS="-fPIC" \ 64 -DCMAKE_CXX_STANDARD="11" \ 56 65 -DCMAKE_Fortran_COMPILER=${MPI_HOME}/bin/mpif77 \ 57 66 -DBoost_NO_BOOST_CMAKE=TRUE \ -
issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh
r27191 r27194 80 80 -DCMAKE_CXX_COMPILER=${MPI_HOME}/bin/mpicxx \ 81 81 -DCMAKE_CXX_FLAGS="-fPIC -fdelayed-template-parsing" \ 82 -DCMAKE_CXX_STANDARD="11" \ 82 83 -DCMAKE_Fortran_COMPILER=${MPI_HOME}/bin/mpif77 \ 83 84 -DCMAKE_Fortran_FLAGS="-fPIC -fallow-argument-mismatch" \ -
issm/trunk-jpl/externalpackages/gmsh/install-4-linux-static.sh
r27159 r27194 17 17 # Find libgfortran and libgcc so we do not have to hardcode them 18 18 # 19 # NOTE: For now, paths are hardcoded.20 #21 19 # TODO: 22 20 # - Move this to etc/environment.sh 23 # - Figure out how to find and grep for single result like we do with mdfind24 # under macOS.25 21 # 26 LIBGFORTRAN= "/usr/lib/gcc/x86_64-linux-gnu/8/libgfortran.a"22 LIBGFORTRAN=$(find /usr -name libgfortran* | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 27 23 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 28 LIBGCC= "/usr/lib/gcc/x86_64-linux-gnu/8/libgcc.a"24 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* | egrep -n libgcc.a | sed "s/[0-9]*://g" | head -1) 29 25 30 26 PREFIX="${ISSM_DIR}/externalpackages/gmsh/install" # Set to location where external package should be installed -
issm/trunk-jpl/externalpackages/gmsh/install-4-linux.sh
r27191 r27194 16 16 17 17 PREFIX="${ISSM_DIR}/externalpackages/gmsh/install" # Set to location where external package should be installed 18 19 # Find libgfortran so that we do not have to hardcode it. 20 # 21 # TODO: 22 # - Move this to etc/environment.sh 23 # 24 LIBGFORTRAN=$(find /usr -name libgfortran* | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 25 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 18 26 19 27 # Cleanup … … 53 61 -DENABLE_OCC=0 \ 54 62 -DENABLE_TOUCHBAR=0 \ 55 -DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas " \63 -DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas -L${LIBGFORTRAN_ROOT} -lgfortran" \ 56 64 -DMETIS_ROOT="${METIS_ROOT}" 57 65 -
issm/trunk-jpl/externalpackages/gmt/install-6-linux-static.sh
r26246 r27194 9 9 # Find libgfortran and libgcc so we do not have to hardcode them 10 10 # 11 # NOTE: For now, paths are hardcoded.12 #13 11 # TODO: 14 12 # - Move this to etc/environment.sh 15 # - Figure out how to find and grep for single result like we do with mdfind16 # under macOS.17 13 # 18 LIBGFORTRAN= "/usr/lib/gcc/x86_64-linux-gnu/8/libgfortran.a"14 LIBGFORTRAN=$(find /usr -name libgfortran* | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 19 15 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 20 LIBGCC= "/usr/lib/gcc/x86_64-linux-gnu/8/libgcc.a"16 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* | egrep -n libgcc.a | sed "s/[0-9]*://g" | head -1) 21 17 22 18 GDAL_EXTRA_LIBS="-lstdc++" # Determined by running `$GDAL_ROOT/bin/gdal-config --dep-libs` then removing duplicate libs
Note:
See TracChangeset
for help on using the changeset viewer.