1 |
commit: e69418c72291eaac2e317d65b1c846609b0330b5 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 27 08:17:49 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 27 08:36:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e69418c7 |
7 |
|
8 |
dev-util/mingw64-toolchain: import drop cflags patch from gcc |
9 |
|
10 |
Tested this before and it built fine anyway, so thought it wasn't |
11 |
needed for mingw64-toolchain (despite --disabled-bootstrap) -- but |
12 |
seen a user run into it and seems I may have tested wrong back then. |
13 |
|
14 |
Bug: https://bugs.gentoo.org/849722 |
15 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
16 |
|
17 |
.../files/gcc-12.2.0-drop-cflags-sed.patch | 23 ++++++++++++++++++++++ |
18 |
.../mingw64-toolchain-10.0.0_p1-r1.ebuild | 1 + |
19 |
2 files changed, 24 insertions(+) |
20 |
|
21 |
diff --git a/dev-util/mingw64-toolchain/files/gcc-12.2.0-drop-cflags-sed.patch b/dev-util/mingw64-toolchain/files/gcc-12.2.0-drop-cflags-sed.patch |
22 |
new file mode 100644 |
23 |
index 000000000000..754bc11a1687 |
24 |
--- /dev/null |
25 |
+++ b/dev-util/mingw64-toolchain/files/gcc-12.2.0-drop-cflags-sed.patch |
26 |
@@ -0,0 +1,23 @@ |
27 |
+https://bugs.gentoo.org/849722 |
28 |
+https://github.com/InBetweenNames/gentooLTO/issues/846 |
29 |
+https://github.com/vaeth/portage-bashrc-mv/issues/11 |
30 |
+--- a/gcc/gcc/configure |
31 |
++++ b/gcc/gcc/configure |
32 |
+@@ -5389,7 +5388,0 @@ |
33 |
+-# Remove the -O2: for historical reasons, unless bootstrapping we prefer |
34 |
+-# optimizations to be activated explicitly by the toplevel. |
35 |
+-case "$CC" in |
36 |
+- */prev-gcc/xgcc*) ;; |
37 |
+- *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` |
38 |
+- CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;; |
39 |
+-esac |
40 |
+--- a/gcc/gcc/configure.ac |
41 |
++++ b/gcc/gcc/configure.ac |
42 |
+@@ -443,7 +442,0 @@ |
43 |
+-# Remove the -O2: for historical reasons, unless bootstrapping we prefer |
44 |
+-# optimizations to be activated explicitly by the toplevel. |
45 |
+-case "$CC" in |
46 |
+- */prev-gcc/xgcc*) ;; |
47 |
+- *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[[ ]]//" -e "s/-O[[gs]][[ ]]//" -e "s/-O[[0-9]]*[[ ]]//" ` |
48 |
+- CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[[ ]]//" -e "s/-O[[gs]][[ ]]//" -e "s/-O[[0-9]]*[[ ]]//" ` ;; |
49 |
+-esac |
50 |
|
51 |
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 |
52 |
index bc9e79c199db..650225a5218e 100644 |
53 |
--- a/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0_p1-r1.ebuild |
54 |
+++ b/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0_p1-r1.ebuild |
55 |
@@ -45,6 +45,7 @@ DEPEND="${RDEPEND}" |
56 |
PATCHES=( |
57 |
"${FILESDIR}"/mingw64-runtime-10.0.0-tmp-files-clash.patch |
58 |
"${FILESDIR}"/gcc-11.3.0-plugin-objdump.patch |
59 |
+ "${FILESDIR}"/gcc-12.2.0-drop-cflags-sed.patch |
60 |
) |
61 |
|
62 |
pkg_pretend() { |