commit: 060e22f07d78978e8e856626a912d1dda3c2f796 Author: Jory Pratt <anarchy <AT> gentoo <DOT> org> AuthorDate: Sat Sep 14 20:55:35 2019 +0000 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org> CommitDate: Sat Sep 14 20:56:35 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=060e22f0
eclass/mozcoreconf-v6: revert lto hack for ppc/arm Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org> eclass/mozcoreconf-v6.eclass | 40 +++++++++------------------------------- 1 file changed, 9 insertions(+), 31 deletions(-) diff --git a/eclass/mozcoreconf-v6.eclass b/eclass/mozcoreconf-v6.eclass index 78104b55fb6..03ffac7914d 100644 --- a/eclass/mozcoreconf-v6.eclass +++ b/eclass/mozcoreconf-v6.eclass @@ -103,12 +103,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 # workaround to set python3 into PYTHON3 until mozilla doesn't need py2 if [[ "${PYTHON_COMPAT[@]}" != "${PYTHON_COMPAT[@]#python3*}" ]]; then @@ -207,17 +201,15 @@ mozconfig_init() { # Additional ARCH support case "${ARCH}" in - arm) - if [[ ${PN} != seamonkey ]] ; then - # Reduce the memory requirements for linking - if use clang ; then - # Nothing to do - :; - elif tc-ld-is-gold || use lto; then - append-ldflags -Wl,--no-keep-memory - else - append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads - fi + arm | ppc64) + # Reduce the memory requirements for linking + if use clang ; then + # Nothing to do + :; + elif tc-ld-is-gold; then + append-ldflags -Wl,--no-keep-memory + else + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads fi ;; alpha) @@ -230,20 +222,6 @@ mozconfig_init() { # Historically we have needed to add this manually for 64-bit append-flags -fPIC ;; - ppc64) - append-flags -fPIC - if [[ ${PN} != seamonkey ]] ; then - # Reduce the memory requirements for linking - if use clang ; then - # Nothing to do - :; - elif tc-ld-is-gold || use lto; then - append-ldflags -Wl,--no-keep-memory - else - append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads - fi - fi - ;; esac # We need to append flags for gcc-6 support