Skip to content

Commit

Permalink
When building for armeabi while using the —with-libraries an error wa…
Browse files Browse the repository at this point in the history
…s thrown;

Now only add the —without-math if —with-libraries is not specified, and throw an error when math is in that list
  • Loading branch information
Patrick-Ru authored and pelya committed Feb 26, 2018
1 parent 175583d commit 31432df
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,14 @@ echo "Building boost for android for $ARCH"
TOOLSET_ARCH=${TOOLSET}-${JAMARCH}
TARGET_OS=android
if [ "$ARCH" = "armeabi" ]; then
echo "Disabling boost_math library on armeabi architecture, because of broken toolchain" | tee -a $PROGDIR/build.log
LIBRARIES_BROKEN="--without-math"
if [ -z "$LIBRARIES" ]; then
echo "Disabling boost_math library on armeabi architecture, because of broken toolchain" | tee -a $PROGDIR/build.log
LIBRARIES_BROKEN="--without-math"
elif echo $LIBRARIES | grep math; then
dump "ERROR: Cannot build boost_math library for armeabi architecture because of broken toolchain"
dump " However, it is explicitly included"
exit 1
fi
fi
else
TOOLSET_ARCH=${TOOLSET}
Expand Down

0 comments on commit 31432df

Please sign in to comment.