about summary refs log tree commit diff
diff options
context:
space:
mode:
authorElly Jones <elly@leptoquark.net>2011-12-16 22:39:33 -0500
committerElly Jones <elly@leptoquark.net>2011-12-16 22:39:33 -0500
commitc8427e4ffd59ba6e6347ece491aca43b17207c2e (patch)
tree1992d48d4593ff30d559c46752eacd2308832254
parentb7e30bc4c5852fb7f840f2abd472fa1e68dcfd52 (diff)
downloadrust-c8427e4ffd59ba6e6347ece491aca43b17207c2e.tar.gz
rust-c8427e4ffd59ba6e6347ece491aca43b17207c2e.zip
cargo: fix lib detection logic
-rw-r--r--src/cargo/cargo.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cargo/cargo.rs b/src/cargo/cargo.rs
index 4fc444f853e..a982d7473aa 100644
--- a/src/cargo/cargo.rs
+++ b/src/cargo/cargo.rs
@@ -314,7 +314,7 @@ fn install_one_crate(c: cargo, _path: str, cf: str, _p: pkg) {
     let exec_suffix = os::exec_suffix();
     for ct: str in created {
         if (exec_suffix != "" && str::ends_with(ct, exec_suffix)) ||
-            (exec_suffix == "" && !str::starts_with(ct, "lib")) {
+            (exec_suffix == "" && !str::starts_with(ct, "./lib")) {
             log #fmt["  bin: %s", ct];
             // FIXME: need libstd fs::copy or something
             run::run_program("cp", [ct, c.bindir]);