]> git.lizzy.rs Git - rust.git/commit
libc: Prepare for movement to crates.io
authorAlex Crichton <alex@alexcrichton.com>
Tue, 6 Jan 2015 02:01:03 +0000 (18:01 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 7 Jan 2015 08:43:49 +0000 (00:43 -0800)
commit01ce6efd859ed6ce3d20d331ae6e035ebd0a7678
treede9b8f12a966bfd2c2b591d38be0c1b56068cca0
parent9e4e524e0eb17c8f463e731f23b544003e8709c6
libc: Prepare for movement to crates.io

This commit prepares the liblibc library to be moved to crates.io. Unlike the
log, serialize, term, etc crates, the source for this crate will *not* be
duplicated out-of-tree. Instead a new rust-lang/libc repository will be created
with a submodule to this repository and it will use the source directly.

In order to compile within the stable ecosystem of Rust, this crate cannot link
to libcore, and it also needs some tweaks for the other attributes that it has.
As a result this commit tweaks the source of the crate to link to libcore when
built in tree but link to libstd when built via cargo.

Note that the rust-lang/libc crate isn't quite prepared just yet, there's a
Cargo bug or two that I'd like to iron out before publishing it. This is simply
preparing the in-tree source.
src/liblibc/lib.rs