diff options
Diffstat (limited to 'deb_patches/armhf-reduce-linker-memory-use.patch')
-rw-r--r-- | deb_patches/armhf-reduce-linker-memory-use.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/deb_patches/armhf-reduce-linker-memory-use.patch b/deb_patches/armhf-reduce-linker-memory-use.patch index 6449227..24b3a35 100644 --- a/deb_patches/armhf-reduce-linker-memory-use.patch +++ b/deb_patches/armhf-reduce-linker-memory-use.patch @@ -6,7 +6,7 @@ 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) + set_config("LINKER_KIND", select_linker.KIND) -@depends_if(select_linker, macos_sdk) @@ -15,13 +15,13 @@ Author: Olivier Tilloy <olivier.tilloy@canonical.com> +def linker_ldflags(linker, macos_sdk, host): flags = list((linker and linker.LINKER_FLAG) or []) if macos_sdk: - if linker and linker.KIND == 'ld64': - flags.append('-Wl,-syslibroot,%s' % macos_sdk) + if linker and linker.KIND == "ld64": + flags.append("-Wl,-syslibroot,%s" % macos_sdk) else: - flags.append('-Wl,--sysroot=%s' % macos_sdk) + flags.append("-Wl,--sysroot=%s" % macos_sdk) - -+ elif host.cpu == 'arm': -+ flags.append('-Wl,--no-keep-memory') ++ elif host.cpu == "arm": ++ flags.append("-Wl,--no-keep-memory") return flags |