commit:     64c008020223a6a6a7ccacdbc02b98378f81540e
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 31 00:46:34 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Oct 31 00:47:51 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64c00802

dev-util/mingw64-toolchain: filter -mfunction-return=thunk for mingw

Unfortunately mingw doesn't play well with many security/mitigation
flags. May need to consider a mingw.eclass if keep adding more of
these to every ebuilds using it.

Closes: https://bugs.gentoo.org/878849
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0_p1-r1.ebuild | 1 +
 1 file changed, 1 insertion(+)

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
index ca6dcfd5cefd..4b6d2cf8e8e0 100644
--- 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
@@ -191,6 +191,7 @@ src_compile() {
                                filter-flags '-fstack-clash-protection' #758914
                                filter-flags '-fstack-protector*' #870136
                                filter-flags '-fuse-ld=*'
+                               filter-flags '-mfunction-return=thunk*' #878849
                                strip-unsupported-flags
                                mwt-build "${@:2}"
                        )

Reply via email to