Wrap statements in AS_IF properly

This commit is contained in:
Nobuyoshi Nakada 2019-12-03 14:46:49 +09:00
parent 027e847cd2
commit 9165fcdfa3
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

@ -579,8 +579,9 @@ AS_IF([test "$GCC" = yes], [
AS_HELP_STRING([--disable-fortify-source],
[disable -D_FORTIFY_SOURCE=2 option, which causes link error on mingw]),
[fortify_source=$enableval])
test "x$fortify_source" = xno ||
AS_IF([test "x$fortify_source" = xno], [
RUBY_TRY_CFLAGS(-D_FORTIFY_SOURCE=2, [RUBY_APPEND_OPTION(XCFLAGS, -D_FORTIFY_SOURCE=2)])
])
: ${MJIT_HEADER_FLAGS='-P -dD'}