[rust-dev] Impending change in RPATH behavior when linking to Rust dynamic libraries

Zoltán Tóth zo1980 at gmail.com
Fri Jul 11 12:09:22 PDT 2014


On Wed, Jul 9, 2014 at 12:57 AM, Brian Anderson <banderson at mozilla.com>
wrote:

>
> # Impact
>
> Installing rustc to non-default locations will result in an installation
> that puts some important libraries in a location the dynamic linker won't
> find, will need to be compensated for with LD_LIBRARY_PATH.
>
>
This is too sad.
Some Rust users may not be administrators, but even if they are, installing
to some light custom folder is too convenient to miss it.
LD_LIBRARY_PATH is not known about by many, and even if known, editing it
is messy practice.

What about these alternatives?

1) Link dependencies of rustc statically to it?

2) On Windows the folder of the executable is always searched for
dependencies. Is this the case on Linux too? Then you could just let 'make
install' copy everything next to rustc.

I may have misunderstood something basic.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140711/6bfc7556/attachment.html>


More information about the Rust-dev mailing list