1 |
commit: ec3d05a8329c95eab16c39506bfb892729c1a8ec |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 31 00:46:04 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=ec3d05a8 |
7 |
|
8 |
dev-util/mingw64-runtime: 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 |
Bug: https://bugs.gentoo.org/878849 |
15 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
16 |
|
17 |
dev-util/mingw64-runtime/mingw64-runtime-10.0.0-r1.ebuild | 1 + |
18 |
dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r3.ebuild | 1 + |
19 |
dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r2.ebuild | 1 + |
20 |
3 files changed, 3 insertions(+) |
21 |
|
22 |
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 |
23 |
index f3225f01c156..5d3ff4f8587f 100644 |
24 |
--- a/dev-util/mingw64-runtime/mingw64-runtime-10.0.0-r1.ebuild |
25 |
+++ b/dev-util/mingw64-runtime/mingw64-runtime-10.0.0-r1.ebuild |
26 |
@@ -66,6 +66,7 @@ src_configure() { |
27 |
filter-flags '-fstack-clash-protection' #758914 |
28 |
filter-flags '-fstack-protector*' #870136 |
29 |
filter-flags '-fuse-ld=*' |
30 |
+ filter-flags '-mfunction-return=thunk*' #878849 |
31 |
fi |
32 |
local CHOST=${CTARGET} |
33 |
strip-unsupported-flags |
34 |
|
35 |
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 |
36 |
index 652dea446b1e..caa50883a838 100644 |
37 |
--- a/dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r3.ebuild |
38 |
+++ b/dev-util/mingw64-runtime/mingw64-runtime-8.0.0-r3.ebuild |
39 |
@@ -68,6 +68,7 @@ src_configure() { |
40 |
filter-flags '-fstack-clash-protection' #758914 |
41 |
filter-flags '-fstack-protector*' #870136 |
42 |
filter-flags '-fuse-ld=*' |
43 |
+ filter-flags '-mfunction-return=thunk*' #878849 |
44 |
fi |
45 |
local CHOST=${CTARGET} |
46 |
strip-unsupported-flags |
47 |
|
48 |
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 |
49 |
index e0d15b0a5f88..7f9b3697a13d 100644 |
50 |
--- a/dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r2.ebuild |
51 |
+++ b/dev-util/mingw64-runtime/mingw64-runtime-9.0.0-r2.ebuild |
52 |
@@ -66,6 +66,7 @@ src_configure() { |
53 |
filter-flags '-fstack-clash-protection' #758914 |
54 |
filter-flags '-fstack-protector*' #870136 |
55 |
filter-flags '-fuse-ld=*' |
56 |
+ filter-flags '-mfunction-return=thunk*' #878849 |
57 |
fi |
58 |
local CHOST=${CTARGET} |
59 |
strip-unsupported-flags |