Просмотр исходного кода

autotools, android: Support Google Play 16 KB Page Size Requirement

autotools port of commit 4b2aa3f102697b1ace7455c24c6c07f802c07476.

cherry picked from commit e7489a0931667d0f2315f66b54bc9a4295dbc578
Ozkan Sezer 1 месяц назад
Родитель
Сommit
9f1cc301a7
2 измененных файлов с 6 добавлено и 0 удалено
  1. 3 0
      configure
  2. 3 0
      configure.ac

+ 3 - 0
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"

+ 3 - 0
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"