diff options
Diffstat (limited to 'src/configure.ac')
-rw-r--r-- | src/configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/configure.ac b/src/configure.ac index c024f65216..d13e3783ce 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -2001,6 +2001,9 @@ if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" $RUBY_CFLAGS" RUBY_LIBS= fi + if test "X$CLANG_VERSION" != "X" -a "$rubyversion" -ge 30; then + RUBY_CFLAGS="$RUBY_CFLAGS -fdeclspec" + fi else AC_MSG_RESULT(not found; disabling Ruby) fi |