Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/mingw64-toolchain/
Date: Mon, 31 Oct 2022 00:54:27
Message-Id: 1667177271.64c008020223a6a6a7ccacdbc02b98378f81540e.ionen@gentoo
1 commit: 64c008020223a6a6a7ccacdbc02b98378f81540e
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 31 00:46:34 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 31 00:47:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64c00802
7
8 dev-util/mingw64-toolchain: filter -mfunction-return=thunk for mingw
9
10 Unfortunately mingw doesn't play well with many security/mitigation
11 flags. May need to consider a mingw.eclass if keep adding more of
12 these to every ebuilds using it.
13
14 Closes: https://bugs.gentoo.org/878849
15 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
16
17 dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0_p1-r1.ebuild | 1 +
18 1 file changed, 1 insertion(+)
19
20 diff --git a/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0_p1-r1.ebuild b/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0_p1-r1.ebuild
21 index ca6dcfd5cefd..4b6d2cf8e8e0 100644
22 --- a/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0_p1-r1.ebuild
23 +++ b/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0_p1-r1.ebuild
24 @@ -191,6 +191,7 @@ src_compile() {
25 filter-flags '-fstack-clash-protection' #758914
26 filter-flags '-fstack-protector*' #870136
27 filter-flags '-fuse-ld=*'
28 + filter-flags '-mfunction-return=thunk*' #878849
29 strip-unsupported-flags
30 mwt-build "${@:2}"
31 )