Skip to content

Commit cb3a5a0

Browse files
committed
Try setting the max page size
1 parent cd4e29e commit cb3a5a0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cmake/build_shared.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ function(build_firebase_shared LIBRARY_NAME ARTIFACT_NAME OUTPUT_NAME)
106106
"-Wl,--no-undefined"
107107
# Link against the static libc++, which is the default done by Gradle.
108108
"-static-libstdc++"
109+
# Set the max page size to 16KB, needed by Android 15
110+
"-Wl,-z,max-page-size=16384"
109111
)
110112
add_custom_command(TARGET ${shared_target} POST_BUILD
111113
COMMAND "${ANDROID_TOOLCHAIN_PREFIX}strip" -g -S -d --strip-debug --verbose

cmake/build_universal.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ function(build_uni TARGET_LINK_LIB_NAMES PROJECT_LIST_HEADER_VARIABLE)
8686
"-Wl,--no-undefined"
8787
# Link against the static libc++, which is the default done by Gradle.
8888
"-static-libstdc++"
89+
# Set the max page size to 16KB, needed by Android 15
90+
"-Wl,-z,max-page-size=16384"
8991
)
9092
add_custom_command(TARGET firebase_app_uni POST_BUILD
9193
COMMAND "${ANDROID_TOOLCHAIN_PREFIX}strip" -g -S -d --strip-debug --verbose

0 commit comments

Comments
 (0)