aboutsummaryrefslogtreecommitdiff
path: root/deb_patches/armhf-reduce-linker-memory-use.patch
diff options
context:
space:
mode:
authorohfp <1813007-ohfp@users.noreply.gitlab.com>2020-07-30 17:51:35 +0200
committerohfp <1813007-ohfp@users.noreply.gitlab.com>2020-07-30 17:57:09 +0200
commitd73ef25178eb107680388e221ce55fa24b51ce5c (patch)
tree4f21fdeca15736de72f9129c17b98b2dd2609f88 /deb_patches/armhf-reduce-linker-memory-use.patch
parentFix version number typo (diff)
downloadlibrewolf-linux-d73ef25178eb107680388e221ce55fa24b51ce5c.tar.gz
librewolf-linux-d73ef25178eb107680388e221ce55fa24b51ce5c.tar.bz2
librewolf-linux-d73ef25178eb107680388e221ce55fa24b51ce5c.zip
v79.0-1
Also (re-)adds some debian armhf-patches – not really needed, but making it easier to apply the libstdc++-related patches without having to modify them.
Diffstat (limited to 'deb_patches/armhf-reduce-linker-memory-use.patch')
-rw-r--r--deb_patches/armhf-reduce-linker-memory-use.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/deb_patches/armhf-reduce-linker-memory-use.patch b/deb_patches/armhf-reduce-linker-memory-use.patch
new file mode 100644
index 0000000..3f20011
--- /dev/null
+++ b/deb_patches/armhf-reduce-linker-memory-use.patch
@@ -0,0 +1,27 @@
+Description: starting with firefox 66, armhf builds on Launchpad frequently
+ fail with "/usr/bin/ld: final link failed: memory exhausted" when linking
+ libxul.so. This is an attempt to reduce the memory used by ld.
+Author: Olivier Tilloy <olivier.tilloy@canonical.com>
+
+--- a/build/moz.configure/toolchain.configure
++++ b/build/moz.configure/toolchain.configure
+@@ -2056,15 +2056,16 @@ def select_linker(linker, c_compiler, de
+ set_config('LINKER_KIND', select_linker.KIND)
+
+
+-@depends_if(select_linker, macos_sdk)
+-def linker_ldflags(linker, macos_sdk):
++@depends_if(select_linker, macos_sdk, host)
++def linker_ldflags(linker, macos_sdk, host):
+ flags = list(linker.LINKER_FLAG or [])
+ if macos_sdk:
+ if linker.KIND == 'ld64':
+ flags.append('-Wl,-syslibroot,%s' % macos_sdk)
+ else:
+ flags.append('-Wl,--sysroot=%s' % macos_sdk)
+-
++ elif host.cpu == 'arm':
++ flags.append('-Wl,--no-keep-memory')
+ return flags
+
+
bgstack15