[前][次][番号順一覧][スレッド一覧]

ruby-changes:65834

From: Nobuyoshi <ko1@a...>
Date: Sat, 10 Apr 2021 16:05:15 +0900 (JST)
Subject: [ruby-changes:65834] 8b7cab70eb (master): configuRe: try `-fdeclspec` option by linking [Bug #17787]

https://git.ruby-lang.org/ruby.git/commit/?id=8b7cab70eb

From 8b7cab70ebf10b252c62bbc7931d0927fb9c25ad Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 9 Apr 2021 17:37:14 +0900
Subject: configure: try `-fdeclspec` option by linking [Bug #17787]

A workaround for `-f` option of AIX xlc compiler which works only
on linking.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index bff9794..6b5dc36 100644
--- a/configure.ac
+++ b/configure.ac
@@ -583,7 +583,7 @@ AS_IF([test x"${RPATHFLAG}" = x], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L583
     rpathflag=`echo "$RPATHFLAG" | sed 's/%.*//'`
 ])
 
-RUBY_TRY_CFLAGS(-fdeclspec, [fdeclspec=yes], [fdeclspec=no])
+RUBY_TRY_LDFLAGS(-fdeclspec, [fdeclspec=yes], [fdeclspec=no])
 AS_IF([test "$fdeclspec" = yes], [
     RUBY_APPEND_OPTIONS(CFLAGS, -fdeclspec)
     RUBY_APPEND_OPTIONS(cflags, -fdeclspec)
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]