summaryrefslogtreecommitdiffstats
path: root/src/auto
diff options
context:
space:
mode:
Diffstat (limited to 'src/auto')
-rwxr-xr-xsrc/auto/configure3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/auto/configure b/src/auto/configure
index f2486e9c4a..ebeed2cf4f 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -7651,6 +7651,9 @@ $as_echo "$rubyhdrdir" >&6; }
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
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
$as_echo "not found; disabling Ruby" >&6; }