about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-04-08 10:15:46 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-04-10 15:22:00 -0700
commit3f2c55f7d5b5c7717dd12eef4572c52a4e8ff550 (patch)
tree5d33313d67b78e779affbc42ce0b988226242209 /src/rustllvm/RustWrapper.cpp
parent25a6b6ef8b4a2852c98585496146ca9d3da37b1b (diff)
downloadrust-3f2c55f7d5b5c7717dd12eef4572c52a4e8ff550.tar.gz
rust-3f2c55f7d5b5c7717dd12eef4572c52a4e8ff550.zip
rustc: Use realpath() for sysroot/rpath
When calculating the sysroot, it's more accurate to use realpath() rather than
just one readlink() to account for any intermediate symlinks that the rustc
binary resolves itself to.

For rpath, realpath() is necessary because the rpath must dictate a relative
rpath from the destination back to the originally linked library, which works
more robustly if there are no symlinks involved.

Concretely, any binary generated on OSX into $TMPDIR requires an absolute rpath
because the temporary directory is behind a symlink with one layer of
indirection. This symlink causes all relative rpaths to fail to resolve.

cc #11734
cc #11857
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions