https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106156
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Liska <mar...@gcc.gnu.org>: https://gcc.gnu.org/g:29f40a8047fa9b6ccde2174ca126b78a535e1a61 commit r13-1696-g29f40a8047fa9b6ccde2174ca126b78a535e1a61 Author: Martin Liska <mli...@suse.cz> Date: Thu Jul 14 09:51:33 2022 +0200 lto-plugin: use -pthread only for detected targets Use -pthread only if we are going to use pthread functionality. PR bootstrap/106156 lto-plugin/ChangeLog: * Makefile.am: Use ac_lto_plugin_extra_ldflags for AM_LDFLAGS. * configure.ac: Use AC_SUBST(ac_lto_plugin_extra_ldflags). * Makefile.in: Regenerate. * configure: Regenerate.