Auto merge of #41163 - nagisa:ldflags-llvm-config, r=alexcrichton

Specify type libraries for llvm-config --ldflags

This matters on systems where static libraries and dynamic libraries reside in
different location
This commit is contained in:
bors 2017-04-09 05:49:31 +00:00
commit cff81da514

View file

@ -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:") {