Do not use __builtin_setjmp

It has been revealed that Clang's `__builtin_setjmp` / `__builtin_longjmp` implementation can be buggy (https://bugs.llvm.org/show_bug.cgi?id=51729). We should instead use `_setjmp` / `_longjmp` provided by Bionic libc.
This commit is contained in:
xtkoba 2021-09-05 09:51:42 +09:00 committed by Henrik Grimler
parent 87ca46cecd
commit 4d4c0a0a69

View File

@ -21,6 +21,8 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_lib_crypt_crypt=no"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" rb_cv_type_deprecated=x"
# getresuid(2) does not work on ChromeOS - https://github.com/termux/termux-app/issues/147:
# TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_getresuid=no"
# Clang's __builtin_setjmp / __builtin_longjmp implementation can be buggy
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func___builtin_setjmp=no"
TERMUX_PKG_HOSTBUILD=true
termux_step_host_build() {