From 9f1cc301a79bdd707f14154253cd4ff7cf2e8f66 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 7 Aug 2025 20:10:02 +0300 Subject: [PATCH] autotools, android: Support Google Play 16 KB Page Size Requirement autotools port of commit 4b2aa3f102697b1ace7455c24c6c07f802c07476. cherry picked from commit e7489a0931667d0f2315f66b54bc9a4295dbc578 --- configure | 3 +++ configure.ac | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configure b/configure index 41bca79e07..81537346cf 100755 --- a/configure +++ b/configure @@ -18390,6 +18390,9 @@ fi BASE_CFLAGS="" BASE_LDFLAGS="" case "$host" in + *-*-android*) + BASE_LDFLAGS="-Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384" + ;; *-*-cygwin*) # We build SDL on cygwin without the UNIX emulation layer save_CFLAGS="$CFLAGS" diff --git a/configure.ac b/configure.ac index b00e3bf7d9..7dba48f655 100644 --- a/configure.ac +++ b/configure.ac @@ -124,6 +124,9 @@ fi BASE_CFLAGS="" BASE_LDFLAGS="" case "$host" in + *-*-android*) + BASE_LDFLAGS="-Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384" + ;; *-*-cygwin*) # We build SDL on cygwin without the UNIX emulation layer save_CFLAGS="$CFLAGS"