diff options
| author | levlam <levlam@telegram.org> | 2025-08-18 16:28:55 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2025-08-18 16:28:55 +0300 |
| commit | 336e29c56d1c34c9ee5cf8755888dd8aee9b799b (patch) | |
| tree | 4f794167bf31ee8302670b825c72da2b12dca7f7 /example | |
| parent | f22e180388645248cbbc623917cb3ef9ce22b815 (diff) | |
Android: use 16K pages for OpenSSL libraries.
Diffstat (limited to 'example')
| -rwxr-xr-x | example/android/build-openssl.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/android/build-openssl.sh b/example/android/build-openssl.sh index 93a2b3746..661091419 100755 --- a/example/android/build-openssl.sh +++ b/example/android/build-openssl.sh @@ -65,11 +65,11 @@ for ABI in arm64-v8a armeabi-v7a x86_64 x86 ; do if [[ $ABI == "x86" ]] ; then ./Configure android-x86 ${SHARED_BUILD_OPTION} -U__ANDROID_API__ -D__ANDROID_API__=$ANDROID_API32 || exit 1 elif [[ $ABI == "x86_64" ]] ; then - ./Configure android-x86_64 ${SHARED_BUILD_OPTION} -U__ANDROID_API__ -D__ANDROID_API__=$ANDROID_API64 || exit 1 + LDFLAGS=-Wl,-z,max-page-size=16384 ./Configure android-x86_64 ${SHARED_BUILD_OPTION} -U__ANDROID_API__ -D__ANDROID_API__=$ANDROID_API64 || exit 1 elif [[ $ABI == "armeabi-v7a" ]] ; then ./Configure android-arm ${SHARED_BUILD_OPTION} -U__ANDROID_API__ -D__ANDROID_API__=$ANDROID_API32 -D__ARM_MAX_ARCH__=8 || exit 1 elif [[ $ABI == "arm64-v8a" ]] ; then - ./Configure android-arm64 ${SHARED_BUILD_OPTION} -U__ANDROID_API__ -D__ANDROID_API__=$ANDROID_API64 || exit 1 + LDFLAGS=-Wl,-z,max-page-size=16384 ./Configure android-arm64 ${SHARED_BUILD_OPTION} -U__ANDROID_API__ -D__ANDROID_API__=$ANDROID_API64 || exit 1 fi sed -i.bak 's/-O3/-O3 -ffunction-sections -fdata-sections/g' Makefile || exit 1 |
