diff --git a/android_jni/avifandroidjni/src/main/jni/CMakeLists.txt b/android_jni/avifandroidjni/src/main/jni/CMakeLists.txt index 4fc1e4e5b5..ceedbe03a0 100644 --- a/android_jni/avifandroidjni/src/main/jni/CMakeLists.txt +++ b/android_jni/avifandroidjni/src/main/jni/CMakeLists.txt @@ -39,4 +39,5 @@ set(CPU_FEATURES_DIR "${ANDROID_NDK}/sources/android/cpufeatures") include_directories(${CPU_FEATURES_DIR}) add_library(cpufeatures STATIC "${CPU_FEATURES_DIR}/cpu-features.c") +target_link_options(avif_android PRIVATE "-Wl,-z,max-page-size=16384") target_link_libraries(avif_android jnigraphics avif log cpufeatures)