From 4018432ed9bded132fe55d4579a7a63ca80d7244 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 18 Mar 2015 18:42:56 -0700 Subject: [PATCH] Use new dedicated metadata for Cargo --- src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 51508da..45fe9b5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -164,8 +164,9 @@ impl Config { .args(&objects) .args(&self.objects), &ar(&target)); - println!("cargo:rustc-flags=-L native={} -l static={}", - dst.display(), &output[3..output.len() - 2]); + println!("cargo:rustc-link-search=native={}", dst.display()); + println!("cargo:rustc-link-lib=static={}", + &output[3..output.len() - 2]); } fn gcc(&self) -> Command {