about summary refs log tree commit diff
path: root/src/libstd/rtdeps.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-12-29 20:09:40 -0800
committerAlex Crichton <alex@alexcrichton.com>2013-12-30 14:35:55 -0800
commit726091fea5ab7663c6e7c7cfdde015afc0065e46 (patch)
tree7f67c8eb6b5428e12f88e219015598b210ede0b7 /src/libstd/rtdeps.rs
parentaa5d779a3590b1ed1559e0489138040a71ae688b (diff)
downloadrust-726091fea5ab7663c6e7c7cfdde015afc0065e46.tar.gz
rust-726091fea5ab7663c6e7c7cfdde015afc0065e46.zip
Convert some C functions to rust functions
Right now on linux, an empty executable with LTO still depends on librt becaues
of the clock_gettime function in rust_builtin.o, but this commit moves this
dependency into a rust function which is subject to elimination via LTO.

At the same time, this also drops libstd's dependency on librt on unices that
are not OSX because the library is only used by extra::time (and now the
dependency is listed in that module instead).
Diffstat (limited to 'src/libstd/rtdeps.rs')
-rw-r--r--src/libstd/rtdeps.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libstd/rtdeps.rs b/src/libstd/rtdeps.rs
index 1ecfc1f25d0..045cdf574f6 100644
--- a/src/libstd/rtdeps.rs
+++ b/src/libstd/rtdeps.rs
@@ -22,7 +22,6 @@ extern {}
 // On linux librt and libdl are indirect dependencies via rustrt,
 // and binutils 2.22+ won't add them automatically
 #[cfg(target_os = "linux")]
-#[link(name = "rt")]
 #[link(name = "dl")]
 #[link(name = "m")]
 #[link(name = "pthread")]
@@ -36,7 +35,6 @@ extern {}
 
 #[cfg(target_os = "freebsd")]
 #[link(name = "execinfo")]
-#[link(name = "rt")]
 #[link(name = "pthread")]
 extern {}