]> git.lizzy.rs Git - rust.git/commitdiff
libc: only provide an rlib.
authorHuon Wilson <dbau.pp+github@gmail.com>
Tue, 3 Jun 2014 23:12:11 +0000 (09:12 +1000)
committerHuon Wilson <dbau.pp+github@gmail.com>
Wed, 4 Jun 2014 09:10:40 +0000 (19:10 +1000)
There's absolutely no reason for `libc` to be offered as a dynamic
library.

mk/crates.mk
src/liblibc/lib.rs
src/libstd/lib.rs

index a683528c847aa6757fc309972a021c2653d679f7..011aaf3fee0c00b75bdbcf2ee01b78865e4d537c 100644 (file)
@@ -102,6 +102,7 @@ TOOL_SOURCE_rustdoc := $(S)src/driver/driver.rs
 TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
 
 ONLY_RLIB_core := 1
+ONLY_RLIB_libc := 1
 ONLY_RLIB_rlibc := 1
 ONLY_RLIB_alloc := 1
 ONLY_RLIB_rand := 1
index 3a9f8bc863b15dea7765e3a3aeb59fb28da486fa..5b7f58fcb815c57028c6476bdf585993b5a70458 100644 (file)
@@ -14,7 +14,6 @@
 #![no_std] // we don't need std, and we can't have std, since it doesn't exist
            // yet. std depends on us.
 #![crate_type = "rlib"]
-#![crate_type = "dylib"]
 
 /*!
 * Bindings for the C standard library and other platform libraries
@@ -4436,4 +4435,7 @@ pub fn open_osfhandle(osfhandle: intptr_t,
     }
 }
 
+#[doc(hidden)]
+pub fn issue_14344_workaround() {} // FIXME #14344 force linkage to happen correctly
+
 #[test] fn work_on_windows() { } // FIXME #10872 needed for a happy windows
index a67ed1c0b7919bf59584e7b5f8cf132f5ee3001b..cde1a7335a58d9d0823c7d365031b65009f7eb38 100644 (file)
@@ -254,6 +254,11 @@ fn start(argc: int, argv: **u8) -> int {
 #[unstable]
 pub mod rt;
 
+#[doc(hidden)]
+pub fn issue_14344_workaround() { // FIXME #14344 force linkage to happen correctly
+    libc::issue_14344_workaround();
+}
+
 // A curious inner-module that's not exported that contains the binding
 // 'std' so that macro-expanded references to std::error and such
 // can be resolved within libstd.