Skip to content

Commit 60c7cbc

Browse files
nobuXrXr
authored andcommitted
configure: try -fdeclspec option by linking [Bug #17787]
A workaround for `-f` option of AIX xlc compiler which works only on linking.
1 parent d4d05f9 commit 60c7cbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ AS_IF([test x"${RPATHFLAG}" = x], [
583583
rpathflag=`echo "$RPATHFLAG" | sed 's/%.*//'`
584584
])
585585

586-
RUBY_TRY_CFLAGS(-fdeclspec, [fdeclspec=yes], [fdeclspec=no])
586+
RUBY_TRY_LDFLAGS(-fdeclspec, [fdeclspec=yes], [fdeclspec=no])
587587
AS_IF([test "$fdeclspec" = yes], [
588588
RUBY_APPEND_OPTIONS(CFLAGS, -fdeclspec)
589589
RUBY_APPEND_OPTIONS(cflags, -fdeclspec)

0 commit comments

Comments
 (0)