1 |
commit: db4ef35d456ab3099fa2570d902c03b2b153ecc7 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 17 01:36:54 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 17 05:33:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db4ef35d |
7 |
|
8 |
mozcoreconf-v5.eclass: [QA] drop (very) stale GCC version checks |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
eclass/mozcoreconf-v5.eclass | 20 ++++++-------------- |
13 |
1 file changed, 6 insertions(+), 14 deletions(-) |
14 |
|
15 |
diff --git a/eclass/mozcoreconf-v5.eclass b/eclass/mozcoreconf-v5.eclass |
16 |
index b01ffe1858e0..8da12ab0f939 100644 |
17 |
--- a/eclass/mozcoreconf-v5.eclass |
18 |
+++ b/eclass/mozcoreconf-v5.eclass |
19 |
@@ -1,4 +1,4 @@ |
20 |
-# Copyright 1999-2021 Gentoo Authors |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
# |
24 |
# @ECLASS: mozcoreconf-v5.eclass |
25 |
@@ -105,12 +105,6 @@ moz_pkgsetup() { |
26 |
# false positives when toplevel configure passes downwards. |
27 |
export QA_CONFIGURE_OPTIONS=".*" |
28 |
|
29 |
- if [[ $(gcc-major-version) -eq 3 ]]; then |
30 |
- ewarn "Unsupported compiler detected, DO NOT file bugs for" |
31 |
- ewarn "outdated compilers. Bugs opened with gcc-3 will be closed" |
32 |
- ewarn "invalid." |
33 |
- fi |
34 |
- |
35 |
python-any-r1_pkg_setup |
36 |
} |
37 |
|
38 |
@@ -157,9 +151,9 @@ mozconfig_init() { |
39 |
#################################### |
40 |
|
41 |
# Set optimization level |
42 |
- if [[ $(gcc-major-version) -ge 7 ]]; then |
43 |
- mozconfig_annotate "Workaround known breakage" --enable-optimize=-O2 |
44 |
- elif [[ ${ARCH} == hppa ]]; then |
45 |
+ mozconfig_annotate "Workaround known breakage" --enable-optimize=-O2 |
46 |
+ |
47 |
+ if [[ ${ARCH} == hppa ]]; then |
48 |
mozconfig_annotate "more than -O0 causes a segfault on hppa" --enable-optimize=-O0 |
49 |
elif [[ ${ARCH} == x86 ]]; then |
50 |
mozconfig_annotate "less then -O2 causes a segfault on x86" --enable-optimize=-O2 |
51 |
@@ -214,10 +208,8 @@ mozconfig_init() { |
52 |
;; |
53 |
esac |
54 |
|
55 |
- # We need to append flags for gcc-6 support |
56 |
- if [[ $(gcc-major-version) -ge 6 ]]; then |
57 |
- append-cxxflags -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2 |
58 |
- fi |
59 |
+ # We need to append flags for >= gcc-6 support |
60 |
+ append-cxxflags -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2 |
61 |
|
62 |
# Use the MOZILLA_FIVE_HOME for the rpath |
63 |
append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags |