Add boost linux clang and refirmat bash
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
unameOut="$(uname -s)"
|
||||
case "${unameOut}" in
|
||||
Linux*) machineArch=Linux;;
|
||||
Darwin*) machineArch=MacOS;;
|
||||
CYGWIN*) machineArch=Windows;;
|
||||
MINGW*) machineArch=Windows;;
|
||||
*) machineArch="UNKNOWN:${unameOut}"
|
||||
Linux*) machineArch=Linux ;;
|
||||
Darwin*) machineArch=MacOS ;;
|
||||
CYGWIN*) machineArch=Windows ;;
|
||||
MINGW*) machineArch=Windows ;;
|
||||
*) machineArch="UNKNOWN:${unameOut}" ;;
|
||||
esac
|
||||
echo ${machineArch}
|
||||
|
||||
@@ -14,7 +14,7 @@ libVer=1_70_0
|
||||
|
||||
echo libVer=$libVer
|
||||
|
||||
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||
originalPath=$scriptDir/original
|
||||
buildPath=$scriptDir/build
|
||||
installPath=$scriptDir/install
|
||||
@@ -40,14 +40,15 @@ mkdir -p $libSrcPath
|
||||
tar zxvpf $libFilePath -C $buildPath
|
||||
|
||||
if [ "${machineArch}" = "Linux" ]; then
|
||||
(cd $libSrcPath && \
|
||||
./bootstrap.sh \
|
||||
--prefix=$libInstallPath && \
|
||||
(cd $libSrcPath &&
|
||||
./bootstrap.sh --prefix=$libInstallPath &&
|
||||
./b2 \
|
||||
--build-dir=$libBuildPath \
|
||||
--prefix=$libInstallPath \
|
||||
--layout=versioned \
|
||||
-j 4 \
|
||||
toolset=gcc \
|
||||
toolset=clang \
|
||||
variant=release,debug \
|
||||
link=shared \
|
||||
threading=multi \
|
||||
@@ -55,10 +56,9 @@ if [ "${machineArch}" = "Linux" ]; then
|
||||
address-model=64 \
|
||||
install)
|
||||
elif [ "${machineArch}" = "MacOS" ]; then
|
||||
(cd $libSrcPath && \
|
||||
./bootstrap.sh \
|
||||
--prefix=$libInstallPath \
|
||||
--with-toolset=clang && \
|
||||
(cd $libSrcPath &&
|
||||
./bootstrap.sh --prefix=$libInstallPath \
|
||||
--with-toolset=clang &&
|
||||
./b2 \
|
||||
--build-dir=$libBuildPath \
|
||||
--prefix=$libInstallPath \
|
||||
@@ -69,14 +69,14 @@ elif [ "${machineArch}" = "MacOS" ]; then
|
||||
threading=multi \
|
||||
runtime-link=shared \
|
||||
address-model=64 \
|
||||
toolset=clang \
|
||||
install)
|
||||
elif [ "${machineArch}" = "Windows" ]; then
|
||||
(cd $libSrcPath && \
|
||||
./bootstrap.bat --prefix=$libInstallPath && \
|
||||
(cd $libSrcPath &&
|
||||
./bootstrap.bat --prefix=$libInstallPath &&
|
||||
./b2 \
|
||||
--build-dir=$libBuildPath \
|
||||
--prefix=$libInstallPath \
|
||||
--layout=versioned \
|
||||
-j 4 \
|
||||
variant=release,debug \
|
||||
link=shared \
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
unameOut="$(uname -s)"
|
||||
case "${unameOut}" in
|
||||
Linux*) machineArch=Linux;;
|
||||
Darwin*) machineArch=MacOS;;
|
||||
CYGWIN*) machineArch=Windows;;
|
||||
MINGW*) machineArch=Windows;;
|
||||
*) machineArch="UNKNOWN:${unameOut}"
|
||||
Linux*) machineArch=Linux ;;
|
||||
Darwin*) machineArch=MacOS ;;
|
||||
CYGWIN*) machineArch=Windows ;;
|
||||
MINGW*) machineArch=Windows ;;
|
||||
*) machineArch="UNKNOWN:${unameOut}" ;;
|
||||
esac
|
||||
echo ${machineArch}
|
||||
|
||||
@@ -14,7 +14,7 @@ libVer=1.5.0
|
||||
|
||||
echo libVer=$libVer
|
||||
|
||||
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||
originalPath=$scriptDir/original
|
||||
buildPath=$scriptDir/build
|
||||
installPath=$scriptDir/install
|
||||
@@ -40,22 +40,22 @@ mkdir -p $libSrcPath
|
||||
tar zxvpf $libFilePath -C $buildPath
|
||||
|
||||
if [ "${machineArch}" = "Linux" ]; then
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/release \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
make install -j)
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/debug \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
make install -j)
|
||||
elif [ "${machineArch}" = "MacOS" ]; then
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
||||
@@ -63,9 +63,9 @@ elif [ "${machineArch}" = "MacOS" ]; then
|
||||
-DLLVMAR_EXECUTABLE:PATH=/usr/bin/ar \
|
||||
-DLLVMNM_EXECUTABLE:PATH=/usr/bin/nm \
|
||||
-DLLVMRANLIB_EXECUTABLE:PATH=/usr/bin/ranlib \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
make install -j)
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
||||
@@ -73,29 +73,29 @@ elif [ "${machineArch}" = "MacOS" ]; then
|
||||
-DLLVMAR_EXECUTABLE:PATH=/usr/bin/ar \
|
||||
-DLLVMNM_EXECUTABLE:PATH=/usr/bin/nm \
|
||||
-DLLVMRANLIB_EXECUTABLE:PATH=/usr/bin/ranlib \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
make install -j)
|
||||
elif [ "${machineArch}" = "Windows" ]; then
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/release \
|
||||
-G "Visual Studio 16 2019" \
|
||||
-A x64 \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
cmake \
|
||||
--build . \
|
||||
--config Release \
|
||||
--target INSTALL)
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath/debug \
|
||||
-G "Visual Studio 16 2019" \
|
||||
-A x64 \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
cmake \
|
||||
--build . \
|
||||
--config Debug \
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
unameOut="$(uname -s)"
|
||||
case "${unameOut}" in
|
||||
Linux*) machineArch=Linux;;
|
||||
Darwin*) machineArch=MacOS;;
|
||||
CYGWIN*) machineArch=Windows;;
|
||||
MINGW*) machineArch=Windows;;
|
||||
*) machineArch="UNKNOWN:${unameOut}"
|
||||
Linux*) machineArch=Linux ;;
|
||||
Darwin*) machineArch=MacOS ;;
|
||||
CYGWIN*) machineArch=Windows ;;
|
||||
MINGW*) machineArch=Windows ;;
|
||||
*) machineArch="UNKNOWN:${unameOut}" ;;
|
||||
esac
|
||||
echo ${machineArch}
|
||||
|
||||
@@ -14,7 +14,7 @@ libVer=0.4.0
|
||||
|
||||
echo libVer=$libVer
|
||||
|
||||
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||
originalPath=$scriptDir/original
|
||||
buildPath=$scriptDir/build
|
||||
installPath=$scriptDir/install
|
||||
@@ -40,48 +40,48 @@ mkdir -p $libSrcPath
|
||||
tar zxvpf $libFilePath -C $buildPath
|
||||
|
||||
if [ "${machineArch}" = "Linux" ]; then
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
make install -j)
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
make install -j)
|
||||
elif [ "${machineArch}" = "MacOS" ]; then
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
make install -j)
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
make install -j)
|
||||
elif [ "${machineArch}" = "Windows" ]; then
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||
-G "Visual Studio 16 2019" \
|
||||
-A x64 \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
cmake \
|
||||
--build . \
|
||||
--config Release \
|
||||
--target INSTALL && \
|
||||
--target INSTALL &&
|
||||
cmake \
|
||||
--build . \
|
||||
--config Debug \
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
unameOut="$(uname -s)"
|
||||
case "${unameOut}" in
|
||||
Linux*) machineArch=Linux;;
|
||||
Darwin*) machineArch=MacOS;;
|
||||
CYGWIN*) machineArch=Windows;;
|
||||
MINGW*) machineArch=Windows;;
|
||||
*) machineArch="UNKNOWN:${unameOut}"
|
||||
Linux*) machineArch=Linux ;;
|
||||
Darwin*) machineArch=MacOS ;;
|
||||
CYGWIN*) machineArch=Windows ;;
|
||||
MINGW*) machineArch=Windows ;;
|
||||
*) machineArch="UNKNOWN:${unameOut}" ;;
|
||||
esac
|
||||
echo ${machineArch}
|
||||
|
||||
@@ -14,7 +14,7 @@ libVer=1.8.1
|
||||
|
||||
echo libVer=$libVer
|
||||
|
||||
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||
originalPath=$scriptDir/original
|
||||
buildPath=$scriptDir/build
|
||||
installPath=$scriptDir/install
|
||||
@@ -40,48 +40,48 @@ mkdir -p $libSrcPath
|
||||
tar zxvpf $libFilePath -C $buildPath
|
||||
|
||||
if [ "${machineArch}" = "Linux" ]; then
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
make install -j)
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
make install -j)
|
||||
elif [ "${machineArch}" = "MacOS" ]; then
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
make install -j)
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
make install -j)
|
||||
elif [ "${machineArch}" = "Windows" ]; then
|
||||
( cd $libBuildPath && \
|
||||
(cd $libBuildPath &&
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_SHARED_LIBS:BOOL=TRUE \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$libInstallPath \
|
||||
-G "Visual Studio 16 2019" \
|
||||
-A x64 \
|
||||
$libSrcPath && \
|
||||
$libSrcPath &&
|
||||
cmake \
|
||||
--build . \
|
||||
--config Release \
|
||||
--target INSTALL && \
|
||||
--target INSTALL &&
|
||||
cmake \
|
||||
--build . \
|
||||
--config Debug \
|
||||
|
||||
@@ -4,7 +4,7 @@ libVer=3.3.1
|
||||
|
||||
echo libVer=$libVer
|
||||
|
||||
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||
originalPath=$scriptDir/original
|
||||
buildPath=$scriptDir/build
|
||||
installPath=$scriptDir/install
|
||||
@@ -65,23 +65,22 @@ echo
|
||||
echo "LD_LIBRARY_PATH = $LD_LIBRARY_PATH"
|
||||
|
||||
# run the configure command with all build options
|
||||
( cd $libBuildPath && \
|
||||
$libSrcPath/configure \
|
||||
--prefix=$libInstallPath \
|
||||
--disable-fc \
|
||||
--disable-f77 \
|
||||
--disable-fortran \
|
||||
--disable-cxx \
|
||||
--enable-fast=all \
|
||||
MPICHLIB_CFLAGS=$BCFLAGS \
|
||||
CC=gcc \
|
||||
CXX=g++ \
|
||||
2>&1 | tee config.out.txt)
|
||||
(cd $libBuildPath &&
|
||||
$libSrcPath/configure \
|
||||
--prefix=$libInstallPath \
|
||||
--disable-fc \
|
||||
--disable-f77 \
|
||||
--disable-fortran \
|
||||
--disable-cxx \
|
||||
--enable-fast=all \
|
||||
MPICHLIB_CFLAGS=$BCFLAGS \
|
||||
CC=gcc \
|
||||
CXX=g++ \
|
||||
2>&1 | tee config.out.txt)
|
||||
|
||||
# clean, build, and install
|
||||
( cd $libBuildPath && \
|
||||
make clean)
|
||||
|
||||
( cd $libBuildPath && \
|
||||
make install -j 2>&1 | tee build.out.txt)
|
||||
(cd $libBuildPath &&
|
||||
make clean)
|
||||
|
||||
(cd $libBuildPath &&
|
||||
make install -j 2>&1 | tee build.out.txt)
|
||||
|
||||
@@ -4,7 +4,7 @@ libVer=4.0.1
|
||||
|
||||
echo libVer=$libVer
|
||||
|
||||
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||
originalPath=$scriptDir/original
|
||||
buildPath=$scriptDir/build
|
||||
installPath=$scriptDir/install
|
||||
@@ -78,24 +78,22 @@ echo "LD_LIBRARY_PATH = $LD_LIBRARY_PATH"
|
||||
#FCFLAGS=$BFFLAGS
|
||||
|
||||
# run the configure command with all build options
|
||||
( cd $libBuildPath && \
|
||||
$libSrcPath/configure \
|
||||
--prefix=$libInstallPath \
|
||||
--disable-vt \
|
||||
--disable-mpi-fortran \
|
||||
--disable-mpi-cxx \
|
||||
--disable-static \
|
||||
--disable-wrapper-rpath \
|
||||
--disable-wrapper-runpath \
|
||||
--disable-dlopen \
|
||||
--enable-mca-static=allocator,bml,btl-sm,btl-self,coll,common-sm,errmgr,gpr,io,iof,maffinity-first_use,mpool-sm,ns,odls,oob,osc,pls,pml,ras,rcache,rds,rmaps,rmgr,rml,sds,topo \
|
||||
CFLAGS=$BCFLAGS \
|
||||
2>&1 | tee config.out.txt)
|
||||
(cd $libBuildPath &&
|
||||
$libSrcPath/configure \
|
||||
--prefix=$libInstallPath \
|
||||
--disable-vt \
|
||||
--disable-mpi-cxx \
|
||||
--disable-static \
|
||||
--disable-wrapper-rpath \
|
||||
--disable-wrapper-runpath \
|
||||
--disable-dlopen \
|
||||
--enable-mca-static=allocator,bml,btl-sm,btl-self,coll,common-sm,errmgr,gpr,io,iof,maffinity-first_use,mpool-sm,ns,odls,oob,osc,pls,pml,ras,rcache,rds,rmaps,rmgr,rml,sds,topo \
|
||||
CFLAGS=$BCFLAGS \
|
||||
2>&1 | tee config.out.txt)
|
||||
|
||||
# clean, build, and install
|
||||
( cd $libBuildPath && \
|
||||
make clean)
|
||||
|
||||
( cd $libBuildPath && \
|
||||
make install -j 2>&1 | tee build.out.txt)
|
||||
(cd $libBuildPath &&
|
||||
make clean)
|
||||
|
||||
(cd $libBuildPath &&
|
||||
make install -j 2>&1 | tee build.out.txt)
|
||||
|
||||
@@ -4,7 +4,7 @@ libVer=4.0.0
|
||||
|
||||
echo libVer=$libVer
|
||||
|
||||
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||
originalPath=$scriptDir/original
|
||||
buildPath=$scriptDir/build
|
||||
installPath=$scriptDir/install
|
||||
@@ -26,7 +26,7 @@ mkdir -p $libInstallPath
|
||||
mkdir -p $libSrcPath
|
||||
|
||||
tar zxvpf $libFilePath -C $buildPath
|
||||
( cd $libSrcPath && \
|
||||
./configure --prefix=$libInstallPath && \
|
||||
make -j && \
|
||||
make install)
|
||||
(cd $libSrcPath &&
|
||||
./configure --prefix=$libInstallPath &&
|
||||
make -j &&
|
||||
make install)
|
||||
|
||||
Reference in New Issue
Block a user