commit: 681186074b74f271d43d680b920effa48c30eb0e Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Tue Jun 28 05:08:14 2022 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Tue Jun 28 05:55:31 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68118607
dev-util/mingw64-toolchain: symlink gcc lto plugin for AR Don't really want to revbump this slow build over a symlink, but it could be a long time before this is bumped normally and come bite back when people try to use LTO. Closes: https://bugs.gentoo.org/854516 Closes: https://bugs.gentoo.org/854540 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> ...64-toolchain-10.0.0.ebuild => mingw64-toolchain-10.0.0-r1.ebuild} | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0.ebuild b/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0-r1.ebuild similarity index 97% rename from dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0.ebuild rename to dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0-r1.ebuild index 5347cee7ffdc..c0d573454f7f 100644 --- a/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0.ebuild +++ b/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0-r1.ebuild @@ -104,6 +104,11 @@ src_compile() { ln -sf {../${CTARGET}/bin/,"${sysroot}"/bin/${CTARGET}-}${bin##*/} || die done ln -sf ld.bfd "${sysroot}"/${CTARGET}/bin/ld || die + + # symlink gcc's lto plugin for AR (bug #854516) + mkdir "${sysroot}"/${CTARGET}/lib/bfd-plugins || die + ln -s ../../../libexec/gcc/${CTARGET}/${GCC_PV}/liblto_plugin.so \ + "${sysroot}"/${CTARGET}/lib/bfd-plugins || die } # gcc (minimal -- if need more, disable only in stage1 / enable in stage3)