Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 14 Sep 2019 20:56:43
Message-Id: 1568494595.060e22f07d78978e8e856626a912d1dda3c2f796.anarchy@gentoo
1 commit: 060e22f07d78978e8e856626a912d1dda3c2f796
2 Author: Jory Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 14 20:55:35 2019 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 14 20:56:35 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=060e22f0
7
8 eclass/mozcoreconf-v6: revert lto hack for ppc/arm
9
10 Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org>
11
12 eclass/mozcoreconf-v6.eclass | 40 +++++++++-------------------------------
13 1 file changed, 9 insertions(+), 31 deletions(-)
14
15 diff --git a/eclass/mozcoreconf-v6.eclass b/eclass/mozcoreconf-v6.eclass
16 index 78104b55fb6..03ffac7914d 100644
17 --- a/eclass/mozcoreconf-v6.eclass
18 +++ b/eclass/mozcoreconf-v6.eclass
19 @@ -103,12 +103,6 @@ moz_pkgsetup() {
20 # false positives when toplevel configure passes downwards.
21 export QA_CONFIGURE_OPTIONS=".*"
22
23 - if [[ $(gcc-major-version) -eq 3 ]]; then
24 - ewarn "Unsupported compiler detected, DO NOT file bugs for"
25 - ewarn "outdated compilers. Bugs opened with gcc-3 will be closed"
26 - ewarn "invalid."
27 - fi
28 -
29 python-any-r1_pkg_setup
30 # workaround to set python3 into PYTHON3 until mozilla doesn't need py2
31 if [[ "${PYTHON_COMPAT[@]}" != "${PYTHON_COMPAT[@]#python3*}" ]]; then
32 @@ -207,17 +201,15 @@ mozconfig_init() {
33
34 # Additional ARCH support
35 case "${ARCH}" in
36 - arm)
37 - if [[ ${PN} != seamonkey ]] ; then
38 - # Reduce the memory requirements for linking
39 - if use clang ; then
40 - # Nothing to do
41 - :;
42 - elif tc-ld-is-gold || use lto; then
43 - append-ldflags -Wl,--no-keep-memory
44 - else
45 - append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
46 - fi
47 + arm | ppc64)
48 + # Reduce the memory requirements for linking
49 + if use clang ; then
50 + # Nothing to do
51 + :;
52 + elif tc-ld-is-gold; then
53 + append-ldflags -Wl,--no-keep-memory
54 + else
55 + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
56 fi
57 ;;
58 alpha)
59 @@ -230,20 +222,6 @@ mozconfig_init() {
60 # Historically we have needed to add this manually for 64-bit
61 append-flags -fPIC
62 ;;
63 - ppc64)
64 - append-flags -fPIC
65 - if [[ ${PN} != seamonkey ]] ; then
66 - # Reduce the memory requirements for linking
67 - if use clang ; then
68 - # Nothing to do
69 - :;
70 - elif tc-ld-is-gold || use lto; then
71 - append-ldflags -Wl,--no-keep-memory
72 - else
73 - append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
74 - fi
75 - fi
76 - ;;
77 esac
78
79 # We need to append flags for gcc-6 support