Browse Source

Put all emitted -L paths into the native path only

add-rc-path
Alex Crichton 10 years ago
parent
commit
4a8a514c8b
  1. 2
      Cargo.toml
  2. 2
      src/lib.rs

2
Cargo.toml

@ -1,7 +1,7 @@
[package]
name = "gcc"
version = "0.1.2"
version = "0.1.3"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/gcc-rs"

2
src/lib.rs

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

Loading…
Cancel
Save