Support Google Play 16 KB Page Size Requirement (#13470)

- See: https://developer.android.com/guide/practices/page-sizes#update-packaging
- Also, make min API uniform at 21 (from 16 and 23 in a few places)

Manual backport of dc2c83c383

(cherry picked from commit 4b2aa3f102)
This commit is contained in:
Anonymous Maarten committed 2025-08-07 18:11:13 +02:00
1 parent 28e9533d34
commit e321995244
3 files changed
+8

No files matched your search

+3
View File
@@ -1275,6 +1275,9 @@ if(ANDROID)
set(HAVE_SDL_MISC TRUE)
endif()
# https://developer.android.com/guide/practices/page-sizes
list(APPEND EXTRA_LDFLAGS_BUILD "-Wl,-z,max-page-size=16384" "-Wl,-z,common-page-size=16384")
# SDL_spinlock.c Needs to be compiled in ARM mode.
# There seems to be no better way currently to set the ARM mode.
# see: https://issuetracker.google.com/issues/62264618