commit:     ec3d05a8329c95eab16c39506bfb892729c1a8ec
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 31 00:46:04 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=ec3d05a8

dev-util/mingw64-runtime: 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.

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

 dev-util/mingw64-runtime/mingw64-runtime-10.0.0-r1.ebuild | 1 +
 dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r3.ebuild  | 1 +
 dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r2.ebuild  | 1 +
 3 files changed, 3 insertions(+)

diff --git a/dev-util/mingw64-runtime/mingw64-runtime-10.0.0-r1.ebuild 
b/dev-util/mingw64-runtime/mingw64-runtime-10.0.0-r1.ebuild
index f3225f01c156..5d3ff4f8587f 100644
--- a/dev-util/mingw64-runtime/mingw64-runtime-10.0.0-r1.ebuild
+++ b/dev-util/mingw64-runtime/mingw64-runtime-10.0.0-r1.ebuild
@@ -66,6 +66,7 @@ src_configure() {
                filter-flags '-fstack-clash-protection' #758914
                filter-flags '-fstack-protector*' #870136
                filter-flags '-fuse-ld=*'
+               filter-flags '-mfunction-return=thunk*' #878849
        fi
        local CHOST=${CTARGET}
        strip-unsupported-flags

diff --git a/dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r3.ebuild 
b/dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r3.ebuild
index 652dea446b1e..caa50883a838 100644
--- a/dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r3.ebuild
+++ b/dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r3.ebuild
@@ -68,6 +68,7 @@ src_configure() {
                filter-flags '-fstack-clash-protection' #758914
                filter-flags '-fstack-protector*' #870136
                filter-flags '-fuse-ld=*'
+               filter-flags '-mfunction-return=thunk*' #878849
        fi
        local CHOST=${CTARGET}
        strip-unsupported-flags

diff --git a/dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r2.ebuild 
b/dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r2.ebuild
index e0d15b0a5f88..7f9b3697a13d 100644
--- a/dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r2.ebuild
+++ b/dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r2.ebuild
@@ -66,6 +66,7 @@ src_configure() {
                filter-flags '-fstack-clash-protection' #758914
                filter-flags '-fstack-protector*' #870136
                filter-flags '-fuse-ld=*'
+               filter-flags '-mfunction-return=thunk*' #878849
        fi
        local CHOST=${CTARGET}
        strip-unsupported-flags

Reply via email to