www-client/firefox: backport elf-hack workaround
authorThomas Deutschmann <whissi@gentoo.org>
Tue, 12 Feb 2019 01:06:33 +0000 (02:06 +0100)
committerThomas Deutschmann <whissi@gentoo.org>
Tue, 12 Feb 2019 01:23:36 +0000 (02:23 +0100)
This commit backports commit b44217eba1c2f4a6f489def0665dcf281108ff87.

Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
www-client/firefox/firefox-60.5.0-r1.ebuild [moved from www-client/firefox/firefox-60.5.0.ebuild with 98% similarity]

similarity index 98%
rename from www-client/firefox/firefox-60.5.0.ebuild
rename to www-client/firefox/firefox-60.5.0-r1.ebuild
index 1603e3b24c9bbe4db0e686176c51bfbda7dc62f2..295da318cc00e18eaa3a239af89c0c4b20a1ad7d 100644 (file)
@@ -234,6 +234,10 @@ src_configure() {
 
        mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
 
+       # allow elfhack to work in combination with unstripped binaries
+       # when they would normally be larger than 2GiB.
+       append-ldflags "-Wl,--compress-debug-sections=zlib"
+
        if use clang ; then
                # https://bugzilla.mozilla.org/show_bug.cgi?id=1423822
                mozconfig_annotate 'elf-hack is broken when using Clang' --disable-elf-hack