Changeset 27397
- Timestamp:
- 11/19/22 15:08:12 (2 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 13 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/dakota/install-6.2-linux-static.sh
r27357 r27397 13 13 # TODO: 14 14 # - Move this to etc/environment.sh 15 # - Test if -static-libgfortran flag will avoid all of this. 16 # - Otherwise, refactor this to work with other gfortran installations. 15 17 # 16 LIBGFORTRAN=$(find /usr -name libgfortran* | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)18 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 17 19 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 18 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* | egrep -n libgcc.a | sed "s/[0-9]*://g" | head -1)20 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* 2>/dev/null | egrep -n libgcc.a | sed "s/[0-9]*://g" | head -1) 19 21 20 22 ## Environment -
issm/trunk-jpl/externalpackages/dakota/install-6.2-linux.sh
r27202 r27397 9 9 PREFIX="${ISSM_DIR}/externalpackages/dakota/install" # Set to location where external package should be installed 10 10 11 # Find libgfortran so that we do not have to hardcode it. 12 # 13 # TODO: 14 # - Move this to etc/environment.sh 15 # 16 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 17 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 18 11 19 ## Environment 12 20 # 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 it21 export BLAS_LIBS="-L${BLAS_ROOT}/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 14 22 export DAK_BUILD=${ISSM_DIR}/externalpackages/dakota/build # DO NOT CHANGE THIS 15 23 export DAK_INSTALL=${PREFIX} # DO NOT CHANGE THIS 16 24 export DAK_SRC=${ISSM_DIR}/externalpackages/dakota/src # DO NOT CHANGE THIS 17 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 it25 export LAPACK_LIBS="-L${LAPACK_ROOT}/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 18 26 19 27 # Cleanup -
issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh
r27202 r27397 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 # Should retrieve a copy of gfortran that is compiled from source before 14 # returning one that is installed via package manager. 11 # Find libgfortran and libgcc so we do not have to hardcode them 15 12 # 16 13 # TODO: 17 14 # - Move this to etc/environment.sh 18 # - Test if -static-libgfortran flag will avoid all of this 19 # - Otherwise, refactor this to work with other gfortran installations 15 # - Test if -static-libgfortran flag will avoid all of this. 16 # - Otherwise, refactor this to work with other gfortran installations. 20 17 # 21 LIBGFORTRAN=$( mdfind -onlyin /usr -name libgfortran | egrep -n libgfortran.a | egrep -v i386| sed "s/[0-9]*://g" | head -1)18 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 22 19 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 23 LIBGCC=$( mdfind -onlyin ${LIBGFORTRAN_ROOT} -name libgcc | egrep -n libgcc.a | egrep -v i386| sed "s/[0-9]*://g" | head -1)20 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* 2>/dev/null | egrep -n libgcc.a | sed "s/[0-9]*://g" | head -1) 24 21 25 22 ## Environment -
issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh
r27191 r27397 11 11 # Find libgfortran so that we do not have to hardcode it. 12 12 # 13 # Should retrieve a copy of gfortran that is compiled from source before14 # returning one that is installed via package manager.15 #16 13 # TODO: 17 14 # - Move this to etc/environment.sh 18 15 # 19 LIBGFORTRAN=$( mdfind -onlyin /usr -name libgfortran | egrep -n libgfortran.a | egrep -v i386| sed "s/[0-9]*://g" | head -1)16 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 20 17 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 21 18 -
issm/trunk-jpl/externalpackages/gmsh/install-4-linux-static.sh
r27202 r27397 24 24 # - Move this to etc/environment.sh 25 25 # 26 LIBGFORTRAN=$(find /usr -name libgfortran* | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)26 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 27 27 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 28 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* | egrep -n libgcc.a | sed "s/[0-9]*://g" | head -1)28 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* 2>/dev/null | egrep -n libgcc.a | sed "s/[0-9]*://g" | head -1) 29 29 30 30 # Cleanup -
issm/trunk-jpl/externalpackages/gmsh/install-4-linux.sh
r27202 r27397 24 24 # - Move this to etc/environment.sh 25 25 # 26 LIBGFORTRAN=$(find /usr -name libgfortran* | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)26 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 27 27 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 28 28 -
issm/trunk-jpl/externalpackages/gmsh/install-4-mac-static.sh
r27202 r27397 22 22 # Find libgfortran and libgcc so we do not have to hardcode them 23 23 # 24 # Should retrieve a copy of gfortran that is compiled from source before returning one that is installed via package manager25 #26 24 # TODO: 27 25 # - Move this to etc/environment.sh … … 29 27 # - Otherwise, refactor this to work with other gfortran installations. 30 28 # 31 LIBGFORTRAN=$( mdfind -onlyin /usr -name libgfortran | egrep -n libgfortran.a | egrep -v i386| sed "s/[0-9]*://g" | head -1)29 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 32 30 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 33 LIBGCC=$( mdfind -onlyin ${LIBGFORTRAN_ROOT} -name libgcc | egrep -n libgcc.a | egrep -v i386| sed "s/[0-9]*://g" | head -1)31 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* 2>/dev/null | egrep -n libgcc.a | sed "s/[0-9]*://g" | head -1) 34 32 35 33 # Cleanup -
issm/trunk-jpl/externalpackages/gmsh/install-4-mac.sh
r27202 r27397 21 21 # Find libgfortran so that we do not have to hardcode it. 22 22 # 23 # Should retrieve a copy of gfortran that is compiled from source before24 # returning one that is installed via package manager.25 #26 23 # TODO: 27 24 # - Move this to etc/environment.sh 28 25 # 29 LIBGFORTRAN=$( mdfind -onlyin /usr -name libgfortran | egrep -n libgfortran.a | egrep -v i386| sed "s/[0-9]*://g" | head -1)26 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 30 27 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 31 28 -
issm/trunk-jpl/externalpackages/gmt/install-6-linux-static.sh
r27385 r27397 11 11 # TODO: 12 12 # - Move this to etc/environment.sh 13 # - Test if -static-libgfortran flag will avoid all of this. 14 # - Otherwise, refactor this to work with other gfortran installations. 13 15 # 14 LIBGFORTRAN=$(find /usr -name libgfortran* | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)16 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 15 17 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 16 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* | egrep -n libgcc.a | sed "s/[0-9]*://g" | head -1)18 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* 2>/dev/null | egrep -n libgcc.a | sed "s/[0-9]*://g" | head -1) 17 19 18 20 GDAL_EXTRA_LIBS="-lstdc++" # Determined by running `$GDAL_ROOT/bin/gdal-config --dep-libs` then removing duplicate libs -
issm/trunk-jpl/externalpackages/gmt/install-6-linux.sh
r27202 r27397 12 12 # - Move this to etc/environment.sh 13 13 # 14 LIBGFORTRAN=$(find /usr -name libgfortran* | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)14 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 15 15 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 16 16 -
issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh
r27385 r27397 9 9 # Find libgfortran and libgcc so we do not have to hardcode them 10 10 # 11 # Should retrieve a copy of gfortran that is compiled from source before returning one that is installed via package manager12 #13 11 # TODO: 14 12 # - Move this to etc/environment.sh … … 16 14 # - Otherwise, refactor this to work with other gfortran installations. 17 15 # 18 LIBGFORTRAN=$( mdfind -onlyin /usr -name libgfortran | egrep -n libgfortran.a | egrep -v i386| sed "s/[0-9]*://g" | head -1)16 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 19 17 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 20 LIBGCC=$( mdfind -onlyin ${LIBGFORTRAN_ROOT} -name libgcc | egrep -n libgcc.a | egrep -v i386| sed "s/[0-9]*://g" | head -1)18 LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* 2>/dev/null | egrep -n libgcc.a | sed "s/[0-9]*://g" | head -1) 21 19 22 20 GDAL_EXTRA_LIBS="-lc++" # `$GDAL_ROOT/bin/gdal-config --dep-libs` does not report need to link to libc++ (see also customized configuration file ./configs/6/static/cmake/modules/FindGDAL.cmake) -
issm/trunk-jpl/externalpackages/gmt/install-6-mac.sh
r27202 r27397 9 9 # Find libgfortran so that we do not have to hardcode it. 10 10 # 11 # Should retrieve a copy of gfortran that is compiled from source before12 # returning one that is installed via package manager.13 #14 11 # TODO: 15 12 # - Move this to etc/environment.sh 16 13 # 17 LIBGFORTRAN=$( mdfind -onlyin /usr -name libgfortran | egrep -n libgfortran.a | egrep -v i386| sed "s/[0-9]*://g" | head -1)14 LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1) 18 15 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*} 19 16 -
issm/trunk-jpl/m4/issm_options.m4
r27202 r27397 337 337 export CXXFLAGS="-std=C++11" 338 338 fi 339 dnl Fix for compact unwind warning 340 if test "${LDFLAGS}" == ""; then 341 LDFLAGS="-Wl,-no_compact_unwind" 342 else 343 LDFLAGS="${LDFLAGS} -Wl,-no_compact_unwind" 344 fi 339 345 AC_SUBST([OSLIBS]) 340 346 AC_MSG_RESULT([done])
Note:
See TracChangeset
for help on using the changeset viewer.