Skip to content

Commit

Permalink
Specify type libraries for llvm-config --ldflags
Browse files Browse the repository at this point in the history
This matters on systems where static libraries and dynamic libraries reside in
different location
  • Loading branch information
nagisa committed Apr 8, 2017
1 parent 53f4bc3 commit aeab73c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustc_llvm/build.rs
Expand Up @@ -217,6 +217,9 @@ fn main() {
// hack around this by replacing the host triple with the target and pray
// that those -L directories are the same!
let mut cmd = Command::new(&llvm_config);
if let Some(link_arg) = llvm_link_arg {
cmd.arg(link_arg);
}
cmd.arg("--ldflags");
for lib in output(&mut cmd).split_whitespace() {
if lib.starts_with("-LIBPATH:") {
Expand Down

0 comments on commit aeab73c

Please sign in to comment.