From 1b011986f5e08d863cc5bc31093a23a8ae3a7949 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 16 Jun 2025 14:38:54 +0300 Subject: Always enable 16KB alignment for 64-bit Android. --- example/android/CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) (limited to 'example') diff --git a/example/android/CMakeLists.txt b/example/android/CMakeLists.txt index ee0e803a1..949a6e4b2 100644 --- a/example/android/CMakeLists.txt +++ b/example/android/CMakeLists.txt @@ -41,11 +41,6 @@ if (CMAKE_CROSSCOMPILING) endif() target_compile_definitions(tdjni PRIVATE PACKAGE_NAME="org/drinkless/tdlib") - if (${ANDROID_ABI} STREQUAL "arm64-v8a" OR ${ANDROID_ABI} STREQUAL "x86_64") - # Enable 16 KB ELF alignment. - target_link_options(tdjni PRIVATE "-Wl,-z,max-page-size=16384") - endif() - add_custom_command(TARGET tdjni POST_BUILD COMMAND ${CMAKE_COMMAND} -E rename $ $.debug COMMAND ${CMAKE_STRIP} --strip-debug --strip-unneeded $.debug -o $) -- cgit v1.2.3