mozcoreconf-v6.eclass: seamonkey doesn't use lto
authorLars Wendler <polynomial-c@gentoo.org>
Sun, 8 Sep 2019 13:25:54 +0000 (15:25 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Sun, 8 Sep 2019 13:28:00 +0000 (15:28 +0200)
Closes: https://bugs.gentoo.org/693666
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
eclass/mozcoreconf-v6.eclass

index 2789e6046b9f4c410922c5a95498c7d46feee70e..78104b55fb6e851060608fef2671b2e7c1d29134 100644 (file)
@@ -208,14 +208,16 @@ mozconfig_init() {
        # Additional ARCH support
        case "${ARCH}" in
        arm)
-               # 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
+               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
                ;;
        alpha)
@@ -230,14 +232,16 @@ mozconfig_init() {
                ;;
        ppc64)
                append-flags -fPIC
-               # 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
+               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