From 8b7cab70ebf10b252c62bbc7931d0927fb9c25ad Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 9 Apr 2021 17:37:14 +0900 Subject: [PATCH] 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 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)