summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-05-17 01:36:54 +0000
committerSam James <sam@gentoo.org>2022-05-17 05:33:48 +0000
commitdb4ef35d456ab3099fa2570d902c03b2b153ecc7 (patch)
tree3ebdab4a8e1095f1697159037455c3785cbd9874 /eclass
parentwww-client/seamonkey: [QA] drop (very) stale GCC version checks (diff)
downloadgentoo-db4ef35d456ab3099fa2570d902c03b2b153ecc7.tar.gz
gentoo-db4ef35d456ab3099fa2570d902c03b2b153ecc7.tar.bz2
gentoo-db4ef35d456ab3099fa2570d902c03b2b153ecc7.zip
mozcoreconf-v5.eclass: [QA] drop (very) stale GCC version checks
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mozcoreconf-v5.eclass20
1 files changed, 6 insertions, 14 deletions
diff --git a/eclass/mozcoreconf-v5.eclass b/eclass/mozcoreconf-v5.eclass
index b01ffe1858e0..8da12ab0f939 100644
--- a/eclass/mozcoreconf-v5.eclass
+++ b/eclass/mozcoreconf-v5.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
#
# @ECLASS: mozcoreconf-v5.eclass
@@ -105,12 +105,6 @@ moz_pkgsetup() {
# false positives when toplevel configure passes downwards.
export QA_CONFIGURE_OPTIONS=".*"
- if [[ $(gcc-major-version) -eq 3 ]]; then
- ewarn "Unsupported compiler detected, DO NOT file bugs for"
- ewarn "outdated compilers. Bugs opened with gcc-3 will be closed"
- ewarn "invalid."
- fi
-
python-any-r1_pkg_setup
}
@@ -157,9 +151,9 @@ mozconfig_init() {
####################################
# Set optimization level
- if [[ $(gcc-major-version) -ge 7 ]]; then
- mozconfig_annotate "Workaround known breakage" --enable-optimize=-O2
- elif [[ ${ARCH} == hppa ]]; then
+ mozconfig_annotate "Workaround known breakage" --enable-optimize=-O2
+
+ if [[ ${ARCH} == hppa ]]; then
mozconfig_annotate "more than -O0 causes a segfault on hppa" --enable-optimize=-O0
elif [[ ${ARCH} == x86 ]]; then
mozconfig_annotate "less then -O2 causes a segfault on x86" --enable-optimize=-O2
@@ -214,10 +208,8 @@ mozconfig_init() {
;;
esac
- # We need to append flags for gcc-6 support
- if [[ $(gcc-major-version) -ge 6 ]]; then
- append-cxxflags -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2
- fi
+ # We need to append flags for >= gcc-6 support
+ append-cxxflags -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2
# Use the MOZILLA_FIVE_HOME for the rpath
append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags