Find a file
Haitao Li ad5014bf4c Fix link error by explicitly link needed DSOs
Building Rust(version 280bc56) on Ubuntu 11.10 failed with link error,
like:

compile_and_link: stage0/lib/rustc/i686-unknown-linux-gnu/lib/libstd.so
compile_and_link: stage0/lib/rustc/i686-unknown-linux-gnu/bin/rustc
/local/src/rust/build/stage0/lib/rustc/i686-unknown-linux-gnu/lib/librustrt.so:
undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
error: linking with gcc failed with code 1

GCC toolchain released by Ubuntu 11.10 introduced a few compiler flags
that are different with upstream GCC[1]. Flags "-Wl,--as-needed' and
'-Wl,--no-copy-dt-needed-entries' are passed by default.

Function clock_gettime from librt is used by librustrt, indirectly by
rustc. It is necessary to explicitly pass the "-lrt" flags when building
rustc.

Please note since the toolchain changes will be the default in the next
release(2.22) of binutils, this is not actually a Debian/Ubuntu specific
issue.

1. https://wiki.ubuntu.com/OneiricOcelot/ReleaseNotes#GCC_4.6_Toolchain

Signed-off-by: Haitao Li <lihaitao@gmail.com>
2011-10-16 17:12:30 +08:00
doc doc: Don't merge function and concept index. There is no findex 2011-09-29 16:47:09 -07:00
mk move ctags.rust into src/etc 2011-10-12 13:57:32 -07:00
src Fix link error by explicitly link needed DSOs 2011-10-16 17:12:30 +08:00
.gitignore Update to libuv commit 3ca382. 2011-09-23 16:53:06 -07:00
AUTHORS.txt Add Elly Jones to AUTHORS.txt 2011-10-15 15:53:18 -07:00
configure Add LLVM 3.1svn to supported versions 2011-10-15 15:53:18 -07:00
LICENSE.txt Add libuv license info to LICENSE.txt 2011-08-09 12:00:00 -07:00
Makefile.in new targets, TAGS.emacs and TAGS.vi. they must be manually made. 2011-10-12 13:57:32 -07:00
README Switch URLs. 2011-09-20 16:27:08 -07:00

This is a compiler and suite of associated libraries and documentation for the
Rust programming language.

See LICENSE.txt for terms of copyright and redistribution.

See http://www.rust-lang.org for more information.