From fdf326a5af7e5dd67af3f4a3bcc079d0484598a9 Mon Sep 17 00:00:00 2001 From: Oliver Behnke Date: Tue, 4 Sep 2018 12:43:04 +0000 Subject: [PATCH] Workaround for missing truncate() libc function * Relevant for 32 bit builds only * Would otherwise only be available as of API level 21 * See also: https://android.googlesource.com/platform/bionic/+/master/docs/status.md * See also: https://android.googlesource.com/platform/bionic/+/master/docs/32-bit-abi.md --- android/build_boinc_arm.sh | 2 +- android/build_boinc_x86.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/build_boinc_arm.sh b/android/build_boinc_arm.sh index 7d0eb69987..731c330b79 100755 --- a/android/build_boinc_arm.sh +++ b/android/build_boinc_arm.sh @@ -41,7 +41,7 @@ make distclean fi if [ -n "$CONFIGURE" ]; then ./_autosetup -./configure --host=arm-linux --with-boinc-platform="arm-android-linux-gnu" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-shared --enable-static +./configure --host=arm-linux --with-boinc-platform="arm-android-linux-gnu" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-shared --enable-static --disable-largefile sed -e "s%^CLIENTLIBS *= *.*$%CLIENTLIBS = -lm $STDCPPTC%g" client/Makefile > client/Makefile.out mv client/Makefile.out client/Makefile fi diff --git a/android/build_boinc_x86.sh b/android/build_boinc_x86.sh index 26b755e4a2..e5caa0532f 100755 --- a/android/build_boinc_x86.sh +++ b/android/build_boinc_x86.sh @@ -41,7 +41,7 @@ make distclean fi if [ -n "$CONFIGURE" ]; then ./_autosetup -./configure --host=i686-linux --with-boinc-platform="x86-android-linux-gnu" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-shared --enable-static +./configure --host=i686-linux --with-boinc-platform="x86-android-linux-gnu" --with-ssl="$TCINCLUDES" --disable-server --disable-manager --disable-shared --enable-static --disable-largefile sed -e "s%^CLIENTLIBS *= *.*$%CLIENTLIBS = -lm $STDCPPTC%g" client/Makefile > client/Makefile.out mv client/Makefile.out client/Makefile fi