Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

Is using patchelf reasonable for non-sudo installs? #34

Open
nugend opened this issue Dec 11, 2015 · 0 comments
Open

Is using patchelf reasonable for non-sudo installs? #34

nugend opened this issue Dec 11, 2015 · 0 comments

Comments

@nugend
Copy link

nugend commented Dec 11, 2015

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant