
patchelf
PatchELF is a utility to modify existing ELF executables and libraries. It can change the dynamic loader and RPATH of executables, remove declared dependencies on dynamic libraries, add a declared dependency on a dynamic library, replace a declared dependency on a dynamic library with another one, and change SONAME of a dynamic library. The --allowed-rpath-prefixes option can be used for further rpath tuning. The --shrink-rpath option removes from the RPATH all directories that do not contain a library referenced by DT_NEEDED fields of the executable or library. The program is free software and is licensed under the GNU General Public License. It can be compiled and tested via Autotools or built with Nix. To build with musl, you can try nix build .#patchelf-musl. The development environment can be launched with nix develop. The author is Eelco Dolstra edolstra@gmail.com.
don't have tea/gui yet? download here
Copy the tea one-liner above into your terminal to install patchelf. tea will interpret the documentation and take care of any dependencies.