From 940ff00e213a73f79218d9a45c628b93c8239a01 Mon Sep 17 00:00:00 2001 From: Oliver Behnke Date: Thu, 30 Aug 2018 08:41:07 +0000 Subject: [PATCH] Update cURL build scripts * Raise default version to current one * Specify minimum Android API version explicitly, based on platform (or existing version) --- android/build_curl_arm.sh | 6 +++--- android/build_curl_arm64.sh | 6 +++--- android/build_curl_x86.sh | 6 +++--- android/build_curl_x86_64.sh | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/android/build_curl_arm.sh b/android/build_curl_arm.sh index 2c78564fdf..62d223b9fb 100755 --- a/android/build_curl_arm.sh +++ b/android/build_curl_arm.sh @@ -11,7 +11,7 @@ COMPILECURL="yes" CONFIGURE="yes" MAKECLEAN="yes" -CURL="${CURL_SRC:-$HOME/src/curl-7.48.0}" #CURL sources, required by BOINC +CURL="${CURL_SRC:-$HOME/src/curl-7.61.0}" #CURL sources, required by BOINC export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}" export ANDROIDTC="${ANDROID_TC_ARM:-$ANDROID_TC/arm}" @@ -24,8 +24,8 @@ export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH" export CC=arm-linux-androideabi-gcc export CXX=arm-linux-androideabi-g++ 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" -export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16" +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__=14" +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__=14" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie -march=armv7-a -Wl,--fix-cortex-a8" export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" diff --git a/android/build_curl_arm64.sh b/android/build_curl_arm64.sh index d34e87f2ed..ae5b5fb571 100755 --- a/android/build_curl_arm64.sh +++ b/android/build_curl_arm64.sh @@ -11,7 +11,7 @@ COMPILECURL="yes" CONFIGURE="yes" MAKECLEAN="yes" -CURL="${CURL_SRC:-$HOME/src/curl-7.48.0}" #CURL sources, required by BOINC +CURL="${CURL_SRC:-$HOME/src/curl-7.61.0}" #CURL sources, required by BOINC export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}" export ANDROIDTC="${ANDROID_TC_ARM64:-$ANDROID_TC/arm64}" @@ -24,8 +24,8 @@ export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH" export CC=aarch64-linux-android-gcc export CXX=aarch64-linux-android-g++ export LD=aarch64-linux-android-ld -export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE" -export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE" +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 GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" diff --git a/android/build_curl_x86.sh b/android/build_curl_x86.sh index 2d6de13d62..419cfdcedc 100755 --- a/android/build_curl_x86.sh +++ b/android/build_curl_x86.sh @@ -11,7 +11,7 @@ COMPILECURL="yes" CONFIGURE="yes" MAKECLEAN="yes" -CURL="${CURL_SRC:-$HOME/src/curl-7.48.0}" #CURL sources, required by BOINC +CURL="${CURL_SRC:-$HOME/src/curl-7.61.0}" #CURL sources, required by BOINC export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}" export ANDROIDTC="${ANDROID_TC_X86:-$ANDROID_TC/x86}" @@ -24,8 +24,8 @@ export PATH="$TCBINARIES:$TCINCLUDES/bin:$PATH" export CC=i686-linux-android-gcc export CXX=i686-linux-android-g++ export LD=i686-linux-android-ld -export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE" -export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE" +export CFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=14" +export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE -D__ANDROID_API__=14" export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -llog -fPIE -pie" export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" diff --git a/android/build_curl_x86_64.sh b/android/build_curl_x86_64.sh index fc7ae6011a..8f1750c54a 100755 --- a/android/build_curl_x86_64.sh +++ b/android/build_curl_x86_64.sh @@ -11,7 +11,7 @@ COMPILECURL="yes" CONFIGURE="yes" MAKECLEAN="yes" -CURL="${CURL_SRC:-$HOME/src/curl-7.48.0}" #CURL sources, required by BOINC +CURL="${CURL_SRC:-$HOME/src/curl-7.61.0}" #CURL sources, required by BOINC export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}" export ANDROIDTC="${ANDROID_TC_X86_64:-$ANDROID_TC/x86_64}" @@ -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 -Wall -I$TCINCLUDES/include -O3 -fomit-frame-pointer -fPIE" -export CXXFLAGS="--sysroot=$TCSYSROOT -DANDROID -Wall -funroll-loops -fexceptions -O3 -fomit-frame-pointer -fPIE" +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 GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include"