ruby-changes:65151
From: Nobuyoshi <ko1@a...>
Date: Fri, 5 Feb 2021 13:56:40 +0900 (JST)
Subject: [ruby-changes:65151] 0acc05caf7 (master): Add -fdeclspec to CFLAGS instead of CC
https://git.ruby-lang.org/ruby.git/commit/?id=0acc05caf7 From 0acc05caf7518cd0d63ab02bfa036455add02346 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 2 Feb 2021 08:33:08 +0900 Subject: Add -fdeclspec to CFLAGS instead of CC --- configure.ac | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 1206e90..fc65234 100644 --- a/configure.ac +++ b/configure.ac @@ -550,11 +550,16 @@ AS_IF([test x"${RPATHFLAG}" = x], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L550 rpathflag=`echo "$RPATHFLAG" | sed 's/%.*//'` ]) -RUBY_TRY_CFLAGS(-fdeclspec, [ - RUBY_APPEND_OPTIONS(CC, -fdeclspec) - RUBY_APPEND_OPTIONS(MJIT_CC, -fdeclspec) +RUBY_TRY_CFLAGS(-fdeclspec, [fdeclspec=yes], [fdeclspec=no]) +AS_IF([test "$fdeclspec" = yes], [ + RUBY_APPEND_OPTIONS(CFLAGS, -fdeclspec) + RUBY_APPEND_OPTIONS(cflags, -fdeclspec) + RUBY_APPEND_OPTIONS(orig_cflags, -fdeclspec) +]) +RUBY_TRY_CXXFLAGS(-fdeclspec, [fdeclspec=yes], [fdeclspec=no]) +AS_IF([test "$fdeclspec" = yes], [ + RUBY_APPEND_OPTIONS(CXXFLAGS, -fdeclspec) ]) -RUBY_TRY_CXXFLAGS(-fdeclspec, [RUBY_APPEND_OPTIONS(CXX, -fdeclspec)]) AS_CASE([$RUBY_PATCHLEVEL], [-*], [RUBY_DEVEL=yes], [RUBY_DEVEL=no]) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/