1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

configure: try -fdeclspec option by linking [Bug #17787]

A workaround for `-f` option of AIX xlc compiler which works only
on linking.
This commit is contained in:
Nobuyoshi Nakada 2021-04-09 17:37:14 +09:00
parent c569c298fe
commit 8b7cab70eb
Notes: git 2021-04-10 16:05:23 +09:00

View file

@ -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)