From 64c008020223a6a6a7ccacdbc02b98378f81540e Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Sun, 30 Oct 2022 20:46:34 -0400 Subject: 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 --- 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}" ) -- cgit v1.2.3-65-gdbad