Changeset 24653
- Timestamp:
- 03/11/20 16:38:20 (5 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/etc/environment.sh ¶
r24637 r24653 223 223 224 224 DAKOTA_DIR="${ISSM_DIR}/externalpackages/dakota/install" 225 path_append "$DAKOTA_DIR/bin" 226 ld_library_path_append "$DAKOTA_DIR/lib" 227 dyld_library_path_prepend "$DAKOTA_DIR/lib" 225 if [ -d "${DAKOTA_DIR}" ]; then 226 path_prepend "${DAKOTA_DIR}/bin" 227 ld_library_path_prepend "${DAKOTA_DIR}/lib" 228 dyld_library_path_prepend "${DAKOTA_DIR}/lib" 229 fi 228 230 229 231 DOXYGEN_DIR="${ISSM_DIR}/externalpackages/doxygen/install" … … 256 258 BOOST_DIR="${ISSM_DIR}/externalpackages/boost/install" 257 259 BOOSTROOT="${ISSM_DIR}/externalpackages/boost/install" 258 if [ -d "$ BOOST_DIR" ]; then260 if [ -d "${BOOST_DIR}" ]; then 259 261 export BOOSTROOT 260 262 export BOOST_DIR 261 ld_library_path_prepend "$BOOST_DIR/lib" 262 dyld_library_path_prepend "$BOOST_DIR/lib" 263 path_prepend "$BOOST_DIR/bin" 263 library_path_prepend "${BOOST_DIR}/lib" 264 ld_library_path_prepend "${BOOST_DIR}/lib" 265 dyld_library_path_prepend "${BOOST_DIR}/lib" 266 path_prepend "${BOOST_DIR}/bin" 264 267 fi 265 268 -
TabularUnified issm/trunk-jpl/externalpackages/boost/install-1.55-linux-static.sh ¶
r24649 r24653 2 2 #set -eu # Do not `run set -eu` because it causes some targets to fail 3 3 4 5 # NOTE:6 # - Stop after bootstrap step and run `bjam --debug-configuration` to figure7 # out which paths Boost is using to include Python. Make sure that each of8 # the listed paths is covered by Python. If not, you must create a symbolic9 # link from $ISSM_DIR/externalpackages/python to the location of the file10 # that Boost is expecting. There is no way to get the Boost to compile with11 # Python otherwise.12 #13 4 14 5 ## Constants … … 18 9 ## Environment 19 10 # 11 export BOOST_ROOT="${ISSM_DIR}/externalpackages/boost" 20 12 export CXXFLAGS='-std=c++98' # Setting CXXFLAGS to deal with C++11 incompatibility with Matlab's Boost 21 13 … … 40 32 cd src 41 33 ./bootstrap.sh \ 42 --prefix= "${ISSM_DIR}/externalpackages/boost/install"\34 --prefix=${BOOST_ROOT}/install \ 43 35 --with-python=python2.7 44 36 … … 50 42 51 43 # Copy binary to install directory 52 mkdir ../install/bin53 cp bjam ../install/bin44 mkdir ${BOOST_ROOT}/install/bin 45 cp bjam ${BOOST_ROOT}/install/bin -
TabularUnified issm/trunk-jpl/externalpackages/boost/install-1.55-linux.sh ¶
r24649 r24653 2 2 #set -eu # Do not `run set -eu` because it causes some targets to fail 3 3 4 5 # NOTE:6 # - Stop after bootstrap step and run `bjam --debug-configuration` to figure7 # out which paths Boost is using to include Python. Make sure that each of8 # the listed paths is covered by Python. If not, you must create a symbolic9 # link from $ISSM_DIR/externalpackages/python to the location of the file10 # that Boost is expecting. There is no way to get the Boost to compile with11 # Python otherwise.12 #13 4 14 5 ## Constants … … 16 7 VER="1_55_0" 17 8 18 ## E vnrionment9 ## Environment 19 10 # 11 export BOOST_ROOT="${ISSM_DIR}/externalpackages/boost" 20 12 export CXXFLAGS='-std=c++98' # Setting CXXFLAGS to deal with C++11 incompatibility with Matlab's Boost 21 13 … … 40 32 cd src 41 33 ./bootstrap.sh \ 42 --prefix= "${ISSM_DIR}/externalpackages/boost/install"\34 --prefix=${BOOST_ROOT}/install \ 43 35 --with-python=python2.7 44 36 … … 50 42 51 43 # Copy binary to install directory 52 mkdir ../install/bin53 cp bjam ../install/bin44 mkdir ${BOOST_ROOT}/install/bin 45 cp bjam ${BOOST_ROOT}/install/bin -
TabularUnified issm/trunk-jpl/externalpackages/boost/install-1.55-mac-static.sh ¶
r24649 r24653 2 2 #set -eu # Do not `run set -eu` because it causes some targets to fail 3 3 4 5 # NOTE:6 # - Stop after bootstrap step and run `bjam --debug-configuration` to figure7 # out which paths Boost is using to include Python. Make sure that each of8 # the listed paths is covered by Python. If not, you must create a symbolic9 # link from $ISSM_DIR/externalpackages/python to the location of the file10 # that Boost is expecting. There is no way to get the Boost to compile with11 # Python otherwise.12 #13 4 14 5 ## Constants … … 16 7 VER="1_55_0" 17 8 18 ## E vnrionment9 ## Environment 19 10 # 11 export BOOST_ROOT="${ISSM_DIR}/externalpackages/boost" 20 12 export CXXFLAGS='-std=c++98' # Setting CXXFLAGS to deal with C++11 incompatibility with Matlab's Boost 21 13 … … 40 32 cd src 41 33 ./bootstrap.sh \ 42 --prefix= "${ISSM_DIR}/externalpackages/boost/install"\34 --prefix=${BOOST_ROOT}/install \ 43 35 --with-python=python2.7 44 36 … … 47 39 48 40 # Compile and install 49 ./bjam link=static install41 ./bjam toolset=darwin link=static install 50 42 51 43 # Copy binary to install directory 52 mkdir ../install/bin53 cp bjam ../install/bin44 mkdir ${BOOST_ROOT}/install/bin 45 cp bjam ${BOOST_ROOT}/install/bin -
TabularUnified issm/trunk-jpl/externalpackages/boost/install-1.55-mac.sh ¶
r24649 r24653 2 2 #set -eu # Do not `run set -eu` because it causes some targets to fail 3 3 4 5 # NOTE:6 # - Stop after bootstrap step and run `bjam --debug-configuration` to figure7 # out which paths Boost is using to include Python. Make sure that each of8 # the listed paths is covered by Python. If not, you must create a symbolic9 # link from $ISSM_DIR/externalpackages/python to the location of the file10 # that Boost is expecting. There is no way to get the Boost to compile with11 # Python otherwise.12 #13 4 14 5 ## Constants … … 16 7 VER="1_55_0" 17 8 18 ## E vnrionment9 ## Environment 19 10 # 11 export BOOST_ROOT="${ISSM_DIR}/externalpackages/boost" 20 12 export CXXFLAGS='-std=c++98' # Setting CXXFLAGS to deal with C++11 incompatibility with Matlab's Boost 21 13 … … 40 32 cd src 41 33 ./bootstrap.sh \ 42 --prefix= "${ISSM_DIR}/externalpackages/boost/install"\34 --prefix=${BOOST_ROOT}/install \ 43 35 --with-python=python2.7 44 36 … … 47 39 48 40 # Compile and install 49 ./bjam install41 ./bjam toolset=darwin install 50 42 51 43 # Copy binary to install directory 52 mkdir ../install/bin 53 cp bjam ../install/bin 44 mkdir ${BOOST_ROOT}/install/bin 45 cp bjam ${BOOST_ROOT}/install/bin 46 47 # Set install_name for all shared libraries 48 cd ${BOOST_ROOT}/install/lib 49 for name in *.dylib; do 50 install_name_tool -id ${BOOST_ROOT}/install/lib/${name} ${name} 51 done 52 53 ## Patch install names for certain libraries 54 # 55 # TODO: Figure out how to reconfigure source to apply these install names at compile time 56 # 57 install_name_tool -change libboost_system.dylib ${BOOST_ROOT}/install/lib/libboost_system.dylib libboost_filesystem.dylib -
TabularUnified issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh ¶
r24649 r24653 42 42 cp configs/${VER}/mac/cmake/BuildDakotaCustom.cmake ${DAK_SRC}/cmake 43 43 cp configs/${VER}/mac/cmake/DakotaDev.cmake ${DAK_SRC}/cmake 44 cp configs/${VER}/mac/cmake/InstallDarwinDylibs.cmake ${DAK_SRC}/cmake 44 45 cp configs/${VER}/mac/packages/VPISparseGrid/src/sandia_rules.cpp ${DAK_SRC}/packages/VPISparseGrid/src 45 46 … … 73 74 # avoid conflict with our definition 74 75 sed -i -e "s/#define HAVE_MPI/\/* #define HAVE_MPI *\//g" include/Teuchos_config.h 76 77 ## Patch install names for certain libraries 78 # 79 # TODO: Figure out how to reconfigure source to apply these install names at compile time 80 # 81 install_name_tool -change libdakota_src_fortran.dylib ${DAK_INSTALL}/lib/libdakota_src_fortran.dylib lib/libdakota_src.dylib 82 install_name_tool -change liblhs_mod.dylib ${DAK_INSTALL}/lib/liblhs_mod.dylib lib/liblhs.dylib 83 install_name_tool -change liblhs_mods.dylib ${DAK_INSTALL}/lib/liblhs_mods.dylib lib/liblhs.dylib 84 install_name_tool -change liblhs_mod.dylib ${DAK_INSTALL}/lib/liblhs_mod.dylib lib/liblhs_mods.dylib 85 install_name_tool -change libteuchos.dylib ${DAK_INSTALL}/lib/libteuchos.dylib lib/liboptpp.dylib 86 install_name_tool -change libdfftpack.dylib ${DAK_INSTALL}/lib/libdfftpack.dylib lib/libpecos.dylib 87 install_name_tool -change liblhs_mod.dylib ${DAK_INSTALL}/lib/liblhs_mod.dylib lib/libpecos.dylib 88 install_name_tool -change liblhs_mods.dylib ${DAK_INSTALL}/lib/liblhs_mods.dylib lib/libpecos.dylib 89 install_name_tool -change libpecos_src.dylib ${DAK_INSTALL}/lib/libpecos_src.dylib lib/libpecos.dylib 90 install_name_tool -change libteuchos.dylib ${DAK_INSTALL}/lib/libteuchos.dylib lib/libpecos.dylib 91 install_name_tool -change libdfftpack.dylib ${DAK_INSTALL}/lib/libdfftpack.dylib lib/libpecos_src.dylib 92 install_name_tool -change liblhs.dylib ${DAK_INSTALL}/lib/liblhs.dylib lib/libpecos_src.dylib 93 install_name_tool -change liblhs_mod.dylib ${DAK_INSTALL}/lib/liblhs_mod.dylib lib/libpecos_src.dylib 94 install_name_tool -change liblhs_mods.dylib ${DAK_INSTALL}/lib/liblhs_mods.dylib lib/libpecos_src.dylib 95 install_name_tool -change libteuchos.dylib ${DAK_INSTALL}/lib/libteuchos.dylib lib/libpecos_src.dylib 96 install_name_tool -change li -
TabularUnified issm/trunk-jpl/src/c/Makefile.am ¶
r24593 r24653 707 707 endif 708 708 709 if VERSION 709 710 710 AM_LDFLAGS = 711 else 712 AM_LDFLAGS = -avoid-version 713 endif 714 711 712 if !VERSION 713 AM_LDFLAGS += -avoid-version 714 endif 715 716 # NOTE: 717 # - On Linux, We probably do not need the -static flag as long as we only 718 # generate static libraries for external packages. Dynamic system libraries 719 # will be linked to, whether we like it or not, if no static version is 720 # available. 721 # - On macOC, static linking of binaries is not supported. 722 # 715 723 if STANDALONE_EXECUTABLES 716 AM_LDFLAGS += -static -Wl,--disable-new-dtags -Wl,-rpath,'$$ORIGIN/../lib' 724 if MAC 725 AM_LDFLAGS += -Wl,-rpath,'$$ORIGIN' 726 else 727 AM_LDFLAGS += -static -Wl,--disable-new-dtags -Wl,-rpath,'$$ORIGIN' 728 endif 717 729 endif 718 730
Note:
See TracChangeset
for help on using the changeset viewer.