aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-04-28 04:54:07 -0400
committerJesse Luehrs <doy@tozt.net>2016-04-28 04:54:07 -0400
commit1191921d19a45a3ea054b856a4fb614f3a0ca943 (patch)
treea5800648081a69ae836821e98b6d3c27e3757aa8
parent4846a058c5a898e984f1bad1c7eff31693a63931 (diff)
downloadvt100-rust-1191921d19a45a3ea054b856a4fb614f3a0ca943.tar.gz
vt100-rust-1191921d19a45a3ea054b856a4fb614f3a0ca943.zip
fix builds
-rw-r--r--build.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/build.rs b/build.rs
index b5b3423..37d90c7 100644
--- a/build.rs
+++ b/build.rs
@@ -6,6 +6,8 @@ fn libvt100() {
.unwrap_or_else(|e| { panic!("couldn't get cwd: {}", e) });;
std::env::set_current_dir("libvt100")
.unwrap_or_else(|e| { panic!("failed to chdir: {}", e) });
+ let absdir = std::env::current_dir()
+ .unwrap_or_else(|e| { panic!("couldn't get cwd: {}", e) });;
let out = std::process::Command::new("make")
.arg("static")
.output()
@@ -17,7 +19,7 @@ fn libvt100() {
std::process::exit(out.status.code().unwrap_or(255));
}
- println!("cargo:rustc-link-search=native=libvt100");
+ println!("cargo:rustc-link-search=native={}", absdir.to_str().unwrap());
println!("cargo:rustc-link-lib=static=vt100");
}
@@ -27,7 +29,7 @@ fn glib() {
panic!("Couldn't find required dependency glib-2.0: {}", e);
});
for dir in lib_def.link_paths {
- println!("cargo:rustc-link-search=native={:?}", dir);
+ println!("cargo:rustc-link-search=native={}", dir.to_str().unwrap());
}
for lib in lib_def.libs {
println!("cargo:rustc-link-lib={}", lib);