diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index a0882a0c0f..f4be92039d 100644 --- a/configure.ac +++ b/configure.ac @@ -1002,8 +1002,7 @@ main() ac_cv_func___builtin_setjmp=no ]) # With gcc-8's -fcf-protection, MJIT's __builtin_longjmp fails. - # TODO: Check if CFLAGS actually includes -fcf-protection instead of using RUBY_TRY_CFLAGS - RUBY_TRY_CFLAGS(-fcf-protection, [cf_protection=yes], [cf_protection=no]) + AS_CASE(["$CC $CFLAGS "], [*" -fcf-protection "*], [cf_protection=yes], [cf_protection=no]) AS_IF([test "$cf_protection" = yes], [ ac_cv_func___builtin_setjmp=no ]) |