summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-10-30 20:46:34 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-10-30 20:47:51 -0400
commit64c008020223a6a6a7ccacdbc02b98378f81540e (patch)
treefddb9d0446c919032e3a60a3d9e1508dade72fd2
parentdev-util/mingw64-runtime: filter -mfunction-return=thunk for mingw (diff)
downloadgentoo-64c008020223a6a6a7ccacdbc02b98378f81540e.tar.gz
gentoo-64c008020223a6a6a7ccacdbc02b98378f81540e.tar.bz2
gentoo-64c008020223a6a6a7ccacdbc02b98378f81540e.zip
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@gentoo.org>
-rw-r--r--dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0_p1-r1.ebuild1
1 files changed, 1 insertions, 0 deletions
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}"
)