source:
issm/oecreview/Archive/27032-27229/ISSM-27193-27194.diff
Last change on this file was 27230, checked in by , 3 years ago | |
---|---|
File size: 6.3 KB |
-
../trunk-jpl/externalpackages/dakota/install-6.2-linux-static.sh
8 8 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 21 29 rm -rf ${DAK_BUILD} ${DAK_INSTALL} ${DAK_SRC} … … 53 61 -DCMAKE_C_FLAGS="-fPIC -Wno-error=implicit-function-declaration" \ 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 \ 58 67 -DHAVE_ACRO=OFF \ -
../trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh
79 79 -DCMAKE_C_FLAGS="-fPIC -Wno-error=implicit-function-declaration" \ 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" \ 84 85 -DBoost_NO_BOOST_CMAKE=TRUE \ -
../trunk-jpl/externalpackages/gmsh/install-4-linux-static.sh
16 16 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 31 27 -
../trunk-jpl/externalpackages/gmsh/install-4-linux.sh
16 16 17 17 PREFIX="${ISSM_DIR}/externalpackages/gmsh/install" # Set to location where external package should be installed 18 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%/*} 26 19 27 # Cleanup 20 28 rm -rf ${PREFIX} src 21 29 mkdir -p ${PREFIX} src … … 52 60 -DENABLE_MPI=1 \ 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 58 66 # Compile and install -
../trunk-jpl/externalpackages/gmt/install-6-linux-static.sh
8 8 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 23 19 NETCDF_EXTRA_LIBS="-lm -ldl -lz" # `$NETCDF_ROOT/bin/nc-config --libs` does not report certain dependencies of certain static libraries (see also customized configuration file ./configs/6.0/static/cmake/modules/FindNETCDF.cmake)
Note:
See TracBrowser
for help on using the repository browser.