aboutsummaryrefslogtreecommitdiff
path: root/deb_patches/armhf-reduce-linker-memory-use.patch
diff options
context:
space:
mode:
Diffstat (limited to 'deb_patches/armhf-reduce-linker-memory-use.patch')
-rw-r--r--deb_patches/armhf-reduce-linker-memory-use.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/deb_patches/armhf-reduce-linker-memory-use.patch b/deb_patches/armhf-reduce-linker-memory-use.patch
index 3f20011..6449227 100644
--- a/deb_patches/armhf-reduce-linker-memory-use.patch
+++ b/deb_patches/armhf-reduce-linker-memory-use.patch
@@ -13,9 +13,9 @@ Author: Olivier Tilloy <olivier.tilloy@canonical.com>
-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 [])
+ flags = list((linker and linker.LINKER_FLAG) or [])
if macos_sdk:
- if linker.KIND == 'ld64':
+ if linker and linker.KIND == 'ld64':
flags.append('-Wl,-syslibroot,%s' % macos_sdk)
else:
flags.append('-Wl,--sysroot=%s' % macos_sdk)
bgstack15