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
This commit is contained in:
Oliver Behnke 2018-09-04 12:43:04 +00:00
parent 802225c7e4
commit fdf326a5af
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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