rustup.sh icon indicating copy to clipboard operation
rustup.sh copied to clipboard

Is using patchelf reasonable for non-sudo installs?

Open nugend opened this issue 10 years ago • 0 comments

Patchelf is a project from Nix which modifies the rpath of shared objects and executable binaries to include a static modification of the runtime load path for shared objects. Nix uses this to a great extent to allow for multiple non-conflicting versions of packages to be installed on a single system.

Using patchelf to modify the rust binaries and libraries to set each file's rpath to the $PREFIX/lib location seems to work seamlessly for making rust work with non-sudo installs.

Is anyone aware of an issue with this?

Would it be reasonable to add a flag that checks if patchelf is available and automatically takes care of running it when --prefix has been set?

nugend avatar Dec 11 '15 17:12 nugend