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