mirror of https://github.com/BOINC/boinc.git
Ensure Android NDK r18 compatibility
* Use Clang instead of GCC (deprecated) * Raised/added minimum Android API version (16) * Use (static) libc++ by default/explicitly (gnustl and stlport are deprecated) * Add verbose flag to toolchain builder where missing
This commit is contained in:
parent
d655906380
commit
55f8736836
|
@ -1,6 +1,6 @@
|
|||
#Mon Dec 28 10:00:20 PST 2015
|
||||
#Wed Jun 20 12:29:54 UTC 2018
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip
|
||||
|
|
|
@ -12,5 +12,5 @@ export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}"
|
|||
export ANDROID_TC_ARM="${ANDROID_TC_ARM:-$ANDROID_TC/arm}"
|
||||
|
||||
if [ ! -d "$ANDROID_TC_ARM/arm-linux-androideabi" ]; then
|
||||
"$NDK_ROOT/build/tools/make-standalone-toolchain.sh" --platform=android-9 --arch=arm --install-dir="$ANDROID_TC_ARM" "$@"
|
||||
"$NDK_ROOT/build/tools/make-standalone-toolchain.sh" --verbose --platform=android-16 --arch=arm --stl=libc++ --install-dir="$ANDROID_TC_ARM" "$@"
|
||||
fi
|
||||
|
|
|
@ -12,5 +12,5 @@ export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}"
|
|||
export ANDROID_TC_ARM64="${ANDROID_TC_ARM64:-$ANDROID_TC/arm64}"
|
||||
|
||||
if [ ! -d "$ANDROID_TC_ARM64/aarch64-linux-android" ]; then
|
||||
"$NDK_ROOT/build/tools/make-standalone-toolchain.sh" --verbose --platform=android-21 --arch=arm64 --install-dir="$ANDROID_TC_ARM64" "$@"
|
||||
"$NDK_ROOT/build/tools/make-standalone-toolchain.sh" --verbose --platform=android-21 --arch=arm64 --stl=libc++ --install-dir="$ANDROID_TC_ARM64" "$@"
|
||||
fi
|
||||
|
|
|
@ -12,5 +12,5 @@ export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}"
|
|||
export ANDROID_TC_X86="${ANDROID_TC_X86:-$ANDROID_TC/x86}"
|
||||
|
||||
if [ ! -d "${ANDROID_TC_X86}/i686-linux-android" ]; then
|
||||
"${NDK_ROOT}/build/tools/make-standalone-toolchain.sh" --platform=android-9 --arch=x86 --install-dir="${ANDROID_TC_X86}" "$@"
|
||||
"${NDK_ROOT}/build/tools/make-standalone-toolchain.sh" --verbose --platform=android-16 --arch=x86 --stl=libc++ --install-dir="${ANDROID_TC_X86}" "$@"
|
||||
fi
|
||||
|
|
|
@ -12,5 +12,5 @@ export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}"
|
|||
export ANDROID_TC_X86_64="${ANDROID_TC_X86_64:-$ANDROID_TC/x86_64}"
|
||||
|
||||
if [ ! -d "${ANDROID_TC_X86_64}/x86_64-linux-android" ]; then
|
||||
"${NDK_ROOT}/build/tools/make-standalone-toolchain.sh" --verbose --platform=android-21 --arch=x86_64 --install-dir="${ANDROID_TC_X86_64}" "$@"
|
||||
"${NDK_ROOT}/build/tools/make-standalone-toolchain.sh" --verbose --platform=android-21 --arch=x86_64 --stl=libc++ --install-dir="${ANDROID_TC_X86_64}" "$@"
|
||||
fi
|
||||
|
|
|
@ -21,12 +21,12 @@ export TCSYSROOT="$ANDROIDTC/sysroot"
|
|||
export STDCPPTC="$TCINCLUDES/lib/libstdc++.a"
|
||||
|
||||
export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH"
|
||||
export CC=arm-linux-androideabi-gcc
|
||||
export CXX=arm-linux-androideabi-g++
|
||||
export CC=arm-linux-androideabi-clang
|
||||
export CXX=arm-linux-androideabi-clang++
|
||||
export LD=arm-linux-androideabi-ld
|
||||
export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE -march=armv7-a"
|
||||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -march=armv7-a"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -march=armv7-a -Wl,--fix-cortex-a8"
|
||||
export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE -march=armv7-a -D__ANDROID_API__=16"
|
||||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -march=armv7-a -D__ANDROID_API__=16"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -latomic -static-libstdc++ -march=armv7-a -Wl,--fix-cortex-a8"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT"
|
||||
|
||||
|
|
|
@ -21,12 +21,12 @@ export TCSYSROOT="$ANDROIDTC/sysroot"
|
|||
export STDCPPTC="$TCINCLUDES/lib/libstdc++.a"
|
||||
|
||||
export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH"
|
||||
export CC=aarch64-linux-android-gcc
|
||||
export CXX=aarch64-linux-android-g++
|
||||
export CC=aarch64-linux-android-clang
|
||||
export CXX=aarch64-linux-android-clang++
|
||||
export LD=aarch64-linux-android-ld
|
||||
export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DANDROID_64 -DDECLARE_TIMEZONE -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=21"
|
||||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -DANDROID_64 -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=21"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -latomic -static-libstdc++"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT"
|
||||
|
||||
|
|
|
@ -21,12 +21,12 @@ export TCSYSROOT="$ANDROIDTC/sysroot"
|
|||
export STDCPPTC="$TCINCLUDES/lib/libstdc++.a"
|
||||
|
||||
export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH"
|
||||
export CC=i686-linux-android-gcc
|
||||
export CXX=i686-linux-android-g++
|
||||
export CC=i686-linux-android-clang
|
||||
export CXX=i686-linux-android-clang++
|
||||
export LD=i686-linux-android-ld
|
||||
export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE"
|
||||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie"
|
||||
export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DDECLARE_TIMEZONE -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=16"
|
||||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=16"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -latomic -static-libstdc++"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT"
|
||||
|
||||
|
|
|
@ -21,12 +21,12 @@ export TCSYSROOT="$ANDROIDTC/sysroot"
|
|||
export STDCPPTC="$TCINCLUDES/lib64/libstdc++.a"
|
||||
|
||||
export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH"
|
||||
export CC=x86_64-linux-android-gcc
|
||||
export CXX=x86_64-linux-android-g++
|
||||
export CC=x86_64-linux-android-clang
|
||||
export CXX=x86_64-linux-android-clang++
|
||||
export LD=x86_64-linux-android-ld
|
||||
export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -DANDROID_64 -DDECLARE_TIMEZONE -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=21"
|
||||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -DANDROID_64 -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=21"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib64 -L$TCINCLUDES/lib64 -llog -fPIE -pie"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib64 -L$TCINCLUDES/lib64 -llog -fPIE -pie -latomic -static-libstdc++"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT"
|
||||
|
||||
|
|
|
@ -21,12 +21,12 @@ export TCSYSROOT="$ANDROIDTC/sysroot"
|
|||
export STDCPPTC="$TCINCLUDES/lib/libstdc++.a"
|
||||
|
||||
export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH"
|
||||
export CC=arm-linux-androideabi-gcc
|
||||
export CXX=arm-linux-androideabi-g++
|
||||
export CC=arm-linux-androideabi-clang
|
||||
export CXX=arm-linux-androideabi-clang++
|
||||
export LD=arm-linux-androideabi-ld
|
||||
export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -D__ANDROID_API__=16"
|
||||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -D__ANDROID_API__=16"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -march=armv7-a -Wl,--fix-cortex-a8"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -latomic -static-libstdc++ -march=armv7-a -Wl,--fix-cortex-a8"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
|
||||
# Prepare android toolchain and environment
|
||||
|
|
|
@ -21,12 +21,12 @@ export TCSYSROOT="$ANDROIDTC/sysroot"
|
|||
export STDCPPTC="$TCINCLUDES/lib/libstdc++.a"
|
||||
|
||||
export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH"
|
||||
export CC=aarch64-linux-android-gcc
|
||||
export CXX=aarch64-linux-android-g++
|
||||
export CC=aarch64-linux-android-clang
|
||||
export CXX=aarch64-linux-android-clang++
|
||||
export LD=aarch64-linux-android-ld
|
||||
export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=21"
|
||||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=21"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -latomic -static-libstdc++"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
|
||||
# Prepare android toolchain and environment
|
||||
|
|
|
@ -21,12 +21,12 @@ export TCSYSROOT="$ANDROIDTC/sysroot"
|
|||
export STDCPPTC="$TCINCLUDES/lib/libstdc++.a"
|
||||
|
||||
export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH"
|
||||
export CC=i686-linux-android-gcc
|
||||
export CXX=i686-linux-android-g++
|
||||
export CC=i686-linux-android-clang
|
||||
export CXX=i686-linux-android-clang++
|
||||
export LD=i686-linux-android-ld
|
||||
export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=16"
|
||||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=16"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -latomic -static-libstdc++"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
|
||||
# Prepare android toolchain and environment
|
||||
|
|
|
@ -21,12 +21,12 @@ export TCSYSROOT="$ANDROIDTC/sysroot"
|
|||
export STDCPPTC="$TCINCLUDES/lib/libstdc++.a"
|
||||
|
||||
export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH"
|
||||
export CC=x86_64-linux-android-gcc
|
||||
export CXX=x86_64-linux-android-g++
|
||||
export CC=x86_64-linux-android-clang
|
||||
export CXX=x86_64-linux-android-clang++
|
||||
export LD=x86_64-linux-android-ld
|
||||
export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=21"
|
||||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=21"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -latomic -static-libstdc++"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
|
||||
# Prepare android toolchain and environment
|
||||
|
|
|
@ -21,12 +21,12 @@ export TCSYSROOT="$ANDROIDTC/sysroot"
|
|||
export STDCPPTC="$TCINCLUDES/lib/libstdc++.a"
|
||||
|
||||
export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH"
|
||||
export CC=arm-linux-androideabi-gcc
|
||||
export CXX=arm-linux-androideabi-g++
|
||||
export CC=arm-linux-androideabi-clang
|
||||
export CXX=arm-linux-androideabi-clang++
|
||||
export LD=arm-linux-androideabi-ld
|
||||
export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -D__ANDROID_API__=16"
|
||||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -D__ANDROID_API__=16"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -march=armv7-a -Wl,--fix-cortex-a8"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -latomic -static-libstdc++ -march=armv7-a -Wl,--fix-cortex-a8"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
|
||||
# Prepare android toolchain and environment
|
||||
|
|
|
@ -21,12 +21,12 @@ export TCSYSROOT="$ANDROIDTC/sysroot"
|
|||
export STDCPPTC="$TCINCLUDES/lib/libstdc++.a"
|
||||
|
||||
export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH"
|
||||
export CC=aarch64-linux-android-gcc
|
||||
export CXX=aarch64-linux-android-g++
|
||||
export CC=aarch64-linux-android-clang
|
||||
export CXX=aarch64-linux-android-clang++
|
||||
export LD=aarch64-linux-android-ld
|
||||
export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=21"
|
||||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=21"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -latomic -static-libstdc++"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
|
||||
# Prepare android toolchain and environment
|
||||
|
|
|
@ -21,12 +21,12 @@ export TCSYSROOT="$ANDROIDTC/sysroot"
|
|||
export STDCPPTC="$TCINCLUDES/lib/libstdc++.a"
|
||||
|
||||
export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH"
|
||||
export CC=i686-linux-android-gcc
|
||||
export CXX=i686-linux-android-g++
|
||||
export CC=i686-linux-android-clang
|
||||
export CXX=i686-linux-android-clang++
|
||||
export LD=i686-linux-android-ld
|
||||
export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=16"
|
||||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=16"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -latomic -static-libstdc++"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
|
||||
# Prepare android toolchain and environment
|
||||
|
|
|
@ -21,12 +21,12 @@ export TCSYSROOT="$ANDROIDTC/sysroot"
|
|||
export STDCPPTC="$TCINCLUDES/lib/libstdc++.a"
|
||||
|
||||
export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH"
|
||||
export CC=x86_64-linux-android-gcc
|
||||
export CXX=x86_64-linux-android-g++
|
||||
export CC=x86_64-linux-android-clang
|
||||
export CXX=x86_64-linux-android-clang++
|
||||
export LD=x86_64-linux-android-ld
|
||||
export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=21"
|
||||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=21"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie"
|
||||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -latomic -static-libstdc++"
|
||||
export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
|
||||
# Prepare android toolchain and environment
|
||||
|
|
Loading…
Reference in New Issue