diff --git a/dist-build/android-armv7-a.sh b/dist-build/android-armv7-a.sh index 6cfa80ae90..84e7671a74 100755 --- a/dist-build/android-armv7-a.sh +++ b/dist-build/android-armv7-a.sh @@ -1,4 +1,5 @@ #!/bin/sh export TARGET_ARCH=armv7-a export CFLAGS="-Os -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -marm -march=${TARGET_ARCH}" +export LDFLAGS="-Wl,-z,max-page-size=16384" ARCH=arm HOST_COMPILER=armv7a-linux-androideabi "$(dirname "$0")/android-build.sh" diff --git a/dist-build/android-armv8-a.sh b/dist-build/android-armv8-a.sh index 16299828d4..5fa930c6c3 100755 --- a/dist-build/android-armv8-a.sh +++ b/dist-build/android-armv8-a.sh @@ -1,4 +1,5 @@ #!/bin/sh export TARGET_ARCH=armv8-a+crypto export CFLAGS="-Os -march=${TARGET_ARCH}" +export LDFLAGS="-Wl,-z,max-page-size=16384" NDK_PLATFORM=android-21 ARCH=arm64 HOST_COMPILER=aarch64-linux-android "$(dirname "$0")/android-build.sh" diff --git a/dist-build/android-x86.sh b/dist-build/android-x86.sh index f21fe472e8..d01b045c5e 100755 --- a/dist-build/android-x86.sh +++ b/dist-build/android-x86.sh @@ -1,4 +1,5 @@ #!/bin/sh export TARGET_ARCH=i686 export CFLAGS="-Os -march=${TARGET_ARCH}" +export LDFLAGS="-Wl,-z,max-page-size=16384" ARCH=x86 HOST_COMPILER=i686-linux-android "$(dirname "$0")/android-build.sh" diff --git a/dist-build/android-x86_64.sh b/dist-build/android-x86_64.sh index 9f2b4f0aa5..25f44348bd 100755 --- a/dist-build/android-x86_64.sh +++ b/dist-build/android-x86_64.sh @@ -1,4 +1,5 @@ #!/bin/sh export TARGET_ARCH=westmere export CFLAGS="-Os -march=${TARGET_ARCH}" +export LDFLAGS="-Wl,-z,max-page-size=16384" NDK_PLATFORM=android-21 ARCH=x86_64 HOST_COMPILER=x86_64-linux-android "$(dirname "$0")/android-build.sh"