Skip to content

Commit

Permalink
boost downgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
wipedlife committed Jun 1, 2021
1 parent 00e384d commit c1b695a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions android/preparedepencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ preinit(){
download_depencies(){
wget -t0 https://github.com/openssl/openssl/archive/refs/tags/OpenSSL_1_1_1k.zip
wget -t0 https://fossies.org/linux/misc/db-$bdbv.tar.gz
wget -t0 https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz
wget -t0 https://ftp.osuosl.org/pub/blfs/conglomeration/boost/boost_1_57_0.tar.bz2#https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz
git clone https://github.com/GOSTSec/android-ifaddrs-from-android-source
}
check_depencies(){
if ! test -e OpenSSL_1_1_1k.zip || ! test -e db-*.tar.gz || ! test -e boost*.tar.gz;then
if ! test -e OpenSSL_1_1_1k.zip || ! test -e db-*.tar.gz || ! test -e boost*.tar.bz2;then
echo "Not exists depencies, download"
download_depencies
fi;
unpack_depencies
}
unpack_depencies(){
if ! test -d openssl-OpenSSL_1_1_1k || ! test -d "db-$bdbv" || ! test -d boost_1_76_0;then
if ! test -d openssl-OpenSSL_1_1_1k || ! test -d "db-$bdbv" || ! test -d boost_1_57_0;then
tar xzvf "db-$bdbv.tar.gz" -C .
7z x OpenSSL_1_1_1k.zip
tar xvpf boost_1_76_0.tar.gz -C .
tar xvpf boost_1_57_0.tar.bz2 -C .
fi;
}
compile_openssl(){
Expand All @@ -61,15 +61,15 @@ compile_db(){
cd ..
}
compile_boost(){
cd boost_1_76_0
cd boost_1_57_0
./bootstrap.sh
echo -e "import option ;\nusing gcc : arm : arm-linux-androideabi-g++ ;\noption.set keep-going : false ; ">project-config.jam
echo "$PATH"
./b2 --layout=versioned --build-type=complete toolset=gcc-arm variant=release link=static threading=multi threadapi=pthread target-os=android define=BOOST_MATH_DISABLE_FLOAT128
cd stage/lib
for lib in *.a;
do
normalname=${lib/-*1_76.a/.a}
normalname=${lib/-*1_57.a/.a}
echo "cp $lib to $normalname"
cp $lib $normalname
done;
Expand Down

0 comments on commit c1b695a

Please sign in to comment.