Go to file
Brian Anderson f466a2fa8f rustc: -L also indicates the location of native libraries
-L currently specifies paths to search for Rust crates

Building crates that use native libraries is difficult. When the
library is located somewhere unexpected there is no way
to tell rustc additional paths to look in.

If libclang is located at `.` then rustc is not going to
know that and linking will fail.

To get around that I often end up inserting

    #[link_args = "-L."] native mod m { }

into other crates to get them to build.

Now you just `rustc -L .` and it builds.

This doesn't do any rpathing so it's still up to somebody else
to put the library somewhere it will be found or use LD_LIBRARY_PATH

This feature comes with a single, XFAILed test, because I could
not think of a way to test it. Odd.
2012-04-16 12:33:21 -07:00
doc Add description of by-move mode. 2012-04-11 10:20:52 -07:00
man Updating the manpage and usage message 2012-01-30 19:02:20 -08:00
mk use find not echo; this also brings fuzzer under the iron fist of tidy.py! 2012-04-13 11:59:17 -07:00
src rustc: -L also indicates the location of native libraries 2012-04-16 12:33:21 -07:00
.gitignore Add config.stamp to .gitignore 2012-03-27 22:25:10 -07:00
.gitmodules Update libuv. 2012-02-02 17:39:47 -08:00
AUTHORS.txt Add Alexander Stavonin to AUTHORS.txt 2012-04-15 16:20:34 -07:00
configure Print configure script found toolchain version 2012-04-10 18:29:57 +08:00
INSTALL.txt Bump version in INSTALL.txt 2012-03-28 22:45:13 -07:00
LICENSE.txt
Makefile.in Fix up LIBRUSTSYNTAX_INPUTS and tidy rule. 2012-04-11 11:08:40 -07:00
README.txt
RELEASES.txt Fix typo in release notes. 2012-03-28 13:52:47 -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.