Add -mrelax-relocations=no hacks to fix musl build
This commit is contained in:
parent
1ece9ca968
commit
884b969f2a
2 changed files with 8 additions and 2 deletions
|
|
@ -855,6 +855,12 @@ impl Build {
|
|||
base.push("-stdlib=libc++".into());
|
||||
base.push("-mmacosx-version-min=10.7".into());
|
||||
}
|
||||
// This is a hack, because newer binutils broke things
|
||||
// on some vms/distros (i.e., linking against unknown relocs disabled by the following flag)
|
||||
// See: https://github.com/rust-lang/rust/issues/34978
|
||||
if target == "x86_64-unknown-linux-musl" {
|
||||
base.push("-Wa,-mrelax-relocations=no".into());
|
||||
}
|
||||
return base
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue