diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-03-19 09:27:33 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-19 09:27:33 -0700 |
commit | 86da5b3f85b3ab2bf86d53b07451b8e6eb823a49 (patch) | |
tree | 35a76ec072ed021e06f6f28bac85d20f83282c08 /libssh2-sys/build.rs | |
parent | e9fd4baa53e9b2f18c7627716644c5e5a930a368 (diff) | |
download | ssh2-rs-86da5b3f85b3ab2bf86d53b07451b8e6eb823a49.zip |
Use new metadata format for Cargo
Diffstat (limited to 'libssh2-sys/build.rs')
-rw-r--r-- | libssh2-sys/build.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libssh2-sys/build.rs b/libssh2-sys/build.rs index 27cd493..703199c 100644 --- a/libssh2-sys/build.rs +++ b/libssh2-sys/build.rs @@ -104,9 +104,12 @@ fn main() { } if windows { - println!("cargo:rustc-flags=-l ws2_32 -l bcrypt -l crypt32"); + println!("cargo:rustc-link-lib=ws2_32"); + println!("cargo:rustc-link-lib=bcrypt"); + println!("cargo:rustc-link-lib=crypt32"); } - println!("cargo:rustc-flags=-L {}/lib -l ssh2:static", dst.display()); + println!("cargo:rustc-link-search=native={}/lib", dst.display()); + println!("cargo:rustc-link-lib=static=ssh2"); println!("cargo:root={}", dst.display()); println!("cargo:include={}/include", dst.display()); } |