bootstrap: builder: don't add origin paths on xous
Don't add the origin rpath when calling the linker. This is unnecessary on Xous since there is no dynamic linker, and Xous can use an ordinary bare-metal linker with no rpath options. As part of this patch, the logic was inverted so that the "else" clause contains everything except "windows" and "xous". Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
112d101f88
commit
dffc86472e
@ -1635,7 +1635,10 @@ impl<'a> Builder<'a> {
|
||||
// flesh out rpath support more fully in the future.
|
||||
rustflags.arg("-Zosx-rpath-install-name");
|
||||
Some(format!("-Wl,-rpath,@loader_path/../{libdir}"))
|
||||
} else if !target.contains("windows") && !target.contains("aix") {
|
||||
} else if !target.contains("windows")
|
||||
&& !target.contains("aix")
|
||||
&& !target.contains("xous")
|
||||
{
|
||||
rustflags.arg("-Clink-args=-Wl,-z,origin");
|
||||
Some(format!("-Wl,-rpath,$ORIGIN/../{libdir}"))
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user