Files

41 lines
1.1 KiB
Bash
Raw Permalink Normal View History

2022-09-15 00:24:08 +02:00
#!/bin/bash
VERSION=1.83.0
2022-09-15 00:24:08 +02:00
echo "Based on boost version $VERSION" >> /etc/versions
source /etc/profile
VER2=`echo $VERSION|sed -e 's#\.#_#g'`
cd /usr/local/cache
if ! test -f boost_$VER2.tar.bz2; then
2025-02-17 22:34:53 +01:00
wget https://archives.boost.io/release/$VERSION/source/boost_$VER2.tar.bz2
2022-09-15 00:24:08 +02:00
fi
cd ~builduser
tar xf /usr/local/cache/boost_$VER2.tar.bz2
cd boost_$VER2
export PATH="$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH"
2022-09-15 00:24:08 +02:00
./bootstrap.sh --without-icu \
--with-toolset=clang \
--with-libraries=filesystem,iostreams,system,thread \
2022-09-15 00:24:08 +02:00
--prefix=/opt/android-boost
echo "using clang : arm : /opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android33-clang++ : <cxxflags>\"-std=c++17 -DBOOST_FILESYSTEM_DISABLE_STATX -DBOOST_FILESYSTEM_DISABLE_GETRANDOM -fvisibility=hidden -fPIC\" <cflags>\"-fPIC\" ;" > user-config.jam
2022-09-15 00:24:08 +02:00
./b2 \
--reconfigure \
--user-config=user-config.jam \
architecture=arm \
address-model=64 \
binary-format=elf \
abi=aapcs \
target-os=android \
variant=release \
link=static \
threading=multi \
debug-symbols=off \
2023-01-15 16:52:18 +01:00
install > ~builduser/boost.build.log 2>&1
2022-09-15 00:24:08 +02:00