From a63835736fbd7e2fc6c0e007b2426c888b53747e Mon Sep 17 00:00:00 2001 From: leleliu008 Date: Wed, 24 Apr 2024 22:37:45 +0800 Subject: [PATCH] optimized Signed-off-by: leleliu008 --- ndk-pkg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ndk-pkg b/ndk-pkg index 563449f..9af9815 100755 --- a/ndk-pkg +++ b/ndk-pkg @@ -7910,6 +7910,11 @@ configure_only() { CONFIGURE_ARGS="$CONFIGURE_ARGS --enable-shared" fi + # https://android.googlesource.com/platform/bionic/+/master/docs/32-bit-abi.md#is-32_bit-on-lp32-y2038 + if [ "$TARGET_PLATFORM_NBIT" = 32 ] ; then + CONFIGURE_ARGS="$CONFIGURE_ARGS --disable-year2038" + fi + CONFIGURE_ENVS="$CONFIGURE_ENVS --with-pic CC='$CC' CFLAGS='$CFLAGS'