Browse Source

Be sure to link statically against archives assembled

add-rc-path
Alex Crichton 10 years ago
parent
commit
ea28272fde
  1. 2
      src/lib.rs

2
src/lib.rs

@ -86,7 +86,7 @@ pub fn compile_library(output: &str, config: &Config, files: &[&str]) {
run(Command::new(ar()).arg("crus")
.arg(dst.join(output))
.args(objects.as_slice()));
println!("cargo:rustc-flags=-L {} -l {}",
println!("cargo:rustc-flags=-L {} -l {}:static",
dst.display(), output.slice(3, output.len() - 2));
}

Loading…
Cancel
Save