diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-04-09 17:37:14 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-04-10 16:05:01 +0900 |
commit | 8b7cab70ebf10b252c62bbc7931d0927fb9c25ad (patch) | |
tree | 828f1c1a65b7076b5c76fd345514fb04f3c716c6 /configure.ac | |
parent | c569c298fe7bf0ff7d51ae26193b00592e65ab8c (diff) |
configure: try `-fdeclspec` option by linking [Bug #17787]
A workaround for `-f` option of AIX xlc compiler which works only
on linking.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4372
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index bff9794adc..6b5dc369e5 100644 --- a/configure.ac +++ b/configure.ac @@ -583,7 +583,7 @@ AS_IF([test x"${RPATHFLAG}" = x], [ 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) |