Hacker News new | ask | show | jobs
by throwaway64 4935 days ago
path prefixes only generally apply to ./configure scripts when you are generating makefiles.

As paths to libs and stuff are hardcoded as part of the ELF spec, it becomes difficult to implement something like this and ive not seen a package manager that can do it.

1 comments

After looking more it appears that I was doing something that only works when targetting a chroot environment. My mistake.

It would be interesting to think more about user-level applications and how that sort of trust would work, if it could.

theoreticly you could work around the library/datafile issues with LD_PRELOAD hacks to make it load stuff from your home directory instead, but thats pretty awful.