]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Fix build error on sparc64 caused by using the gold linker
authorMathias Gibbens <gibmat@debian.org>
Tue, 10 Jan 2023 23:20:14 +0000 (23:20 +0000)
committerMathias Gibbens <gibmat@debian.org>
Tue, 10 Jan 2023 23:20:14 +0000 (23:20 +0000)
Signed-off-by: Mathias Gibbens <gibmat@debian.org>
meson.build

index 63bce420c9a1f080090ef4e3827f308eea5811f2..6d216693c6d02b0272ec1852d245303780536109 100644 (file)
@@ -225,11 +225,15 @@ possible_link_flags = [
     '-Wl,--gc-sections',
     '-Wl,-z,relro',
     '-Wl,-z,now',
-    '-Wl,-fuse-ld=gold',
     '-fstack-protector',
     '-fstack-protector-strong',
 ]
 
+# The gold linker fails with a bus error on sparc64
+if build_machine.cpu_family() != 'sparc64'
+    possible_link_flags += '-Wl,-fuse-ld=gold'
+endif
+
 if sanitize == 'none'
     possible_link_flags += '-Wl,--warn-common'
 endif