aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2015-06-28 19:41:52 -0700
committerSteven Fackler <[email protected]>2015-06-28 19:41:52 -0700
commit6e43f5c0d45620cc53df790e6e16cfc274e7deb5 (patch)
treee3a82500fd89fa9b583b39a14f637f9e88d481e0
parentDon't use pkg-config on windows (diff)
downloadrust-openssl-6e43f5c0d45620cc53df790e6e16cfc274e7deb5.tar.xz
rust-openssl-6e43f5c0d45620cc53df790e6e16cfc274e7deb5.zip
Modernize cargo directives
-rw-r--r--openssl-sys/build.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/openssl-sys/build.rs b/openssl-sys/build.rs
index 8bbb0657..c1f12034 100644
--- a/openssl-sys/build.rs
+++ b/openssl-sys/build.rs
@@ -23,7 +23,7 @@ fn main() {
}
if let Some(mingw_paths) = get_mingw_in_path() {
for path in mingw_paths {
- println!("cargo:rustc-flags=-L native={}", path);
+ println!("cargo:rustc-link-search=native={}", path);
}
}
}
@@ -49,11 +49,12 @@ fn main() {
};
if let Some(lib_dir) = lib_dir {
- println!("cargo:rustc-flags=-L native={}", lib_dir);
+ println!("cargo:rustc-link-search=native={}", lib_dir);
}
- let libs_arg = libs.iter().fold(String::new(), |args, lib| args + &format!(" -l {0}={1}", mode, lib));
- println!("cargo:rustc-flags={0}", libs_arg);
+ for lib in libs {
+ println!("cargo:rustc-link-lib={}={}", mode, lib);
+ }
let mut include_dirs = vec![];