summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-01-05 13:48:42 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-01-05 13:59:03 +0900
commitb9c1b3f8d82b6f2517786b2f9e06683909af34c3 (patch)
treec07de06bf35274a9103e41831152c9d429cb2ee1
parentf2d0d4cb0ace469e2ca2fd11e16261df1f2840ff (diff)
configure.ac: disable using __builtin_setjmp on ARM Android
A patch from Tee KOBAYASHI <xtkoba+ruby@gmail.com>. [Bug #17511]
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e1e59f0..3d1c5b6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -892,6 +892,12 @@ AS_CASE(["$target_os"],
dnl Checks for libraries.
AS_CASE(["$target_os"],[*bsd*|dragonfly*],[],[ac_cv_func_daemon=no])
+AS_CASE(["$target_os"], [*android*], [
+ AS_CASE(["$target_cpu"], [arm*], [
+ ac_cv_func___builtin_setjmp=no
+ ])
+])
+
AS_UNSET(ORIG_LIBS)
POSTLINK=:
AC_SUBST(POSTLINK)