https://sourceware.org/bugzilla/show_bug.cgi?id=33470
--- Comment #16 from Alan Modra <amodra at gmail dot com> --- Re the v2 patch. Yes GCC_PLUGIN_OPTION is not in libtool.m4, but see m4_defun([_LT_CMD_OLD_ARCHIVE], [plugin_option= plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" for plugin in $plugin_names; do plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` if test x$plugin_so = x$plugin; then plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` fi if test x$plugin_so != x$plugin; then plugin_option="--plugin $plugin_so" break fi done AC_CHECK_TOOL(AR, ar, false) test -z "$AR" && AR=ar if test -n "$plugin_option"; then etc. The revised patch still fails due to libtool adding another plugin option. >From my make log: libtool: link: ranlib --plugin /usr/lib/llvm-20/lib/clang/20/../../LLVMgold.so --plugin /usr/lib/gcc/x86_64-linux-gnu/14/liblto_plugin.so .libs/libbfd.a The last --plugin wins. I was in the middle of making this comment when your v3 patch landed. I'll try that. -- You are receiving this mail because: You are on the CC list for the bug.