diff options
author | B Stack <bgstack15@gmail.com> | 2021-05-24 08:58:47 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2021-05-24 08:58:47 -0400 |
commit | 1d040b429fe55c9a147b172b3588312a069cf454 (patch) | |
tree | 7886328665e060bc9fc56298e8410d27a7939bfd /armhf-reduce-linker-memory-use.patch | |
parent | Updated to latest upstream (88.0.1) (diff) | |
download | librewolf-fedora-ff-1d040b429fe55c9a147b172b3588312a069cf454.tar.gz librewolf-fedora-ff-1d040b429fe55c9a147b172b3588312a069cf454.tar.bz2 librewolf-fedora-ff-1d040b429fe55c9a147b172b3588312a069cf454.zip |
88.0.1-1 from fedora88.0.1-1
Diffstat (limited to 'armhf-reduce-linker-memory-use.patch')
-rw-r--r-- | armhf-reduce-linker-memory-use.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/armhf-reduce-linker-memory-use.patch b/armhf-reduce-linker-memory-use.patch new file mode 100644 index 0000000..3baaecb --- /dev/null +++ b/armhf-reduce-linker-memory-use.patch @@ -0,0 +1,28 @@ +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 +@@ -2418,8 +2418,8 @@ + set_config("LINKER_KIND", select_linker.KIND) + + +-@depends_if(select_linker, macos_sdk, sysroot_path, multiarch_dir) +-def linker_ldflags(linker, macos_sdk, sysroot_path, multiarch_dir): ++@depends_if(select_linker, macos_sdk, sysroot_path, multiarch_dir, host) ++def linker_ldflags(linker, macos_sdk, sysroot_path, multiarch_dir, host): + flags = list((linker and linker.LINKER_FLAG) or []) + if macos_sdk: + if linker and linker.KIND == "ld64": +@@ -2427,6 +2427,9 @@ + else: + flags.append("-Wl,--sysroot=%s" % macos_sdk) + ++ if host.cpu == "arm": ++ flags.append("-Wl,--no-keep-memory") ++ + if sysroot_path and multiarch_dir: + # Non-Debian-patched binutils linkers (both BFD and gold) don't lookup + # in multi-arch directories. |