add verbatim linker to AIXLinker
This commit is contained in:
parent
3b022d8cee
commit
917d2eb78a
1 changed files with 3 additions and 3 deletions
|
@ -1643,9 +1643,9 @@ impl<'a> Linker for AixLinker<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn link_dylib_by_name(&mut self, name: &str, _verbatim: bool, _as_needed: bool) {
|
fn link_dylib_by_name(&mut self, name: &str, verbatim: bool, _as_needed: bool) {
|
||||||
self.hint_dynamic();
|
self.hint_dynamic();
|
||||||
self.link_or_cc_arg(format!("-l{name}"));
|
self.link_or_cc_arg(if verbatim { String::from(name) } else { format!("-l{name}") });
|
||||||
}
|
}
|
||||||
|
|
||||||
fn link_dylib_by_path(&mut self, path: &Path, _as_needed: bool) {
|
fn link_dylib_by_path(&mut self, path: &Path, _as_needed: bool) {
|
||||||
|
@ -1656,7 +1656,7 @@ impl<'a> Linker for AixLinker<'a> {
|
||||||
fn link_staticlib_by_name(&mut self, name: &str, verbatim: bool, whole_archive: bool) {
|
fn link_staticlib_by_name(&mut self, name: &str, verbatim: bool, whole_archive: bool) {
|
||||||
self.hint_static();
|
self.hint_static();
|
||||||
if !whole_archive {
|
if !whole_archive {
|
||||||
self.link_or_cc_arg(format!("-l{name}"));
|
self.link_or_cc_arg(if verbatim { String::from(name) } else { format!("-l{name}") });
|
||||||
} else {
|
} else {
|
||||||
let mut arg = OsString::from("-bkeepfile:");
|
let mut arg = OsString::from("-bkeepfile:");
|
||||||
arg.push(find_native_static_library(name, verbatim, self.sess));
|
arg.push(find_native_static_library(name, verbatim, self.sess));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue