From 43a5fc14a4558c33aeb76c807dd28e66a17d3e0b Mon Sep 17 00:00:00 2001 From: Jose Luis Marti Date: Tue, 29 Oct 2024 18:26:05 +0100 Subject: [PATCH] [Android] Support 16 KB page sizes --- cmake/scripts/android/ArchSetup.cmake | 2 +- tools/depends/configure.ac | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/scripts/android/ArchSetup.cmake b/cmake/scripts/android/ArchSetup.cmake index 73c732c43d..b665bcb519 100644 --- a/cmake/scripts/android/ArchSetup.cmake +++ b/cmake/scripts/android/ArchSetup.cmake @@ -3,7 +3,7 @@ if(NOT CMAKE_TOOLCHAIN_FILE) endif() set(ARCH_DEFINES -DTARGET_POSIX -DTARGET_LINUX -DTARGET_ANDROID) -set(SYSTEM_DEFINES -D__STDC_CONSTANT_MACROS -D_FILE_OFFSET_BITS=64) +set(SYSTEM_DEFINES -D__STDC_CONSTANT_MACROS -D_FILE_OFFSET_BITS=64 -D__BIONIC_NO_PAGE_SIZE_MACRO) # Main cpp set(CORE_MAIN_SOURCE ${CMAKE_SOURCE_DIR}/xbmc/platform/android/activity/XBMCApp.cpp) diff --git a/tools/depends/configure.ac b/tools/depends/configure.ac index 15c395b005..c1d363b4b6 100644 --- a/tools/depends/configure.ac +++ b/tools/depends/configure.ac @@ -335,6 +335,7 @@ case $host in if test "x$use_cpu" = "xarm64-v8a"; then platform_cflags="${platform_cflags} -mtune=cortex-a53" fi + platform_ldflags="${platform_ldflags} -Wl,-z,max-page-size=16384" meson_cpu="aarch64" ;; i*86*-linux-android*) -- 2.11.4.GIT