Force all native libraries to be statically linked when linking a static binary
This commit is contained in:
parent
c2ccc855e7
commit
0304e0a5b0
3 changed files with 47 additions and 6 deletions
|
@ -596,6 +596,17 @@ impl LinkOutputKind {
|
|||
_ => return None,
|
||||
})
|
||||
}
|
||||
|
||||
pub fn can_link_dylib(self) -> bool {
|
||||
match self {
|
||||
LinkOutputKind::StaticNoPicExe | LinkOutputKind::StaticPicExe => false,
|
||||
LinkOutputKind::DynamicNoPicExe
|
||||
| LinkOutputKind::DynamicPicExe
|
||||
| LinkOutputKind::DynamicDylib
|
||||
| LinkOutputKind::StaticDylib
|
||||
| LinkOutputKind::WasiReactorExe => true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for LinkOutputKind {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue