Skip to content

Commit

Permalink
Merge pull request #281 from fioprotocol/hotfix/boost-path
Browse files Browse the repository at this point in the history
Fix boost path error on ubuntu and mac builds
  • Loading branch information
ericbutz authored May 5, 2021
2 parents 0b30e12 + a872e25 commit c74c946
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/helpers/fio_helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,17 @@ function ensure-boost() {
B2_FLAGS="-q -j${JOBS} --with-iostreams --with-date_time --with-filesystem --with-system --with-program_options --with-chrono --with-test install"
BOOTSTRAP_FLAGS=""
if [[ $ARCH == "Linux" ]] && $PIN_COMPILER; then
B2_FLAGS="toolset=clang cxxflags='-stdlib=libc++ -D__STRICT_ANSI__ -nostdinc++ -I${CLANG_ROOT}/include/c++/v1' linkflags='-stdlib=libc++' link=static threading=multi --with-iostreams --with-date_time --with-filesystem --with-system --with-program_options --with-chrono --with-test -q -j${JOBS} install"
B2_FLAGS="toolset=clang cxxflags='-stdlib=libc++ -D__STRICT_ANSI__ -nostdinc++ -I${CLANG_ROOT}/include/c++/v1 -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fpie' linkflags='-stdlib=libc++ -pie' link=static threading=multi --with-iostreams --with-date_time --with-filesystem --with-system --with-program_options --with-chrono --with-test -q -j${JOBS} install"
BOOTSTRAP_FLAGS="--with-toolset=clang"
elif $PIN_COMPILER; then
local SDKROOT="$(xcrun --sdk macosx --show-sdk-path)"
fi
execute bash -c "cd $SRC_DIR && \
curl -LO https://dl.bintray.com/boostorg/release/$BOOST_VERSION_MAJOR.$BOOST_VERSION_MINOR.$BOOST_VERSION_PATCH/source/boost_$BOOST_VERSION.tar.bz2 \
execute bash -c "cd $SRC_DIR && \
curl -LO https://boostorg.jfrog.io/artifactory/main/release/$BOOST_VERSION_MAJOR.$BOOST_VERSION_MINOR.$BOOST_VERSION_PATCH/source/boost_$BOOST_VERSION.tar.bz2 \
&& tar -xjf boost_$BOOST_VERSION.tar.bz2 \
&& cd $BOOST_ROOT \
&& ./bootstrap.sh ${BOOTSTRAP_FLAGS} --prefix=$BOOST_ROOT \
&& ./b2 ${B2_FLAGS} \
&& SDKROOT="$SDKROOT" ./bootstrap.sh ${BOOTSTRAP_FLAGS} --prefix=$BOOST_ROOT \
&& SDKROOT="$SDKROOT" ./b2 ${B2_FLAGS} \
&& cd .. \
&& rm -f boost_$BOOST_VERSION.tar.bz2 \
&& rm -rf $BOOST_LINK_LOCATION"
Expand Down

0 comments on commit c74c946

Please sign in to comment.