autotools port of commit 4b2aa3f102697b1ace7455c24c6c07f802c07476. cherry picked from commit e7489a0931667d0f2315f66b54bc9a4295dbc578
@@ -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"
@@ -124,6 +124,9 @@ fi