How to set rpath or runpath larger then it was originally?

459 Views Asked by At

I have stumbled on a problem: I need to change the rpath, but I need it larger than it originally was.

chrpath won't rewrite the whole file, so it allows only narrowing. How do I enlarge that space? Is there another re-compiler to set a larger rpath/runpath?

1

There are 1 best solutions below

2
Employed Russian On

Use patchelf -- it has no limitations on the length of the new path.