mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-04-28 22:34:09 +00:00
Fix build error on sparc64 caused by using the gold linker
Signed-off-by: Mathias Gibbens <gibmat@debian.org>
This commit is contained in:
parent
e343a16122
commit
849d808779
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user