mirror of https://github.com/BOINC/boinc.git
Fix x86_64 BOINC build
* Specify minimum Android API version explicitly, based on platform (or existing version) * Enable verbose builds
This commit is contained in:
parent
a51f31f6e3
commit
4b3951c1db
|
@ -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" --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 --install-dir="${ANDROID_TC_X86_64}" "$@"
|
||||
fi
|
||||
|
|
|
@ -24,8 +24,8 @@ export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH"
|
|||
export CC=x86_64-linux-android-gcc
|
||||
export CXX=x86_64-linux-android-g++
|
||||
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"
|
||||
export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -DANDROID_64 -Wall -I$TCINCLUDES/include -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE"
|
||||
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 GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"
|
||||
export PKG_CONFIG_SYSROOT_DIR="$TCSYSROOT"
|
||||
|
|
Loading…
Reference in New Issue