How to remove RUNPATH from existing libraries
807575Apr 20 2005 — edited Apr 1 2010We're using a sharable library from a 3rd party library that was linked with the default RUNPATHs. (The compiler inserts its own library locations for the RUNPATH unless you tell it otherwise). One of our customers happens to have an unpatched version of an old Sun compiler at the same location where our vendor built their sharable library. We've worked around the problem by having the customer patch their compiler, and we're nagging the vendor to build with -norunpath, but they've still haven't done it after a year.
Is there a utility to edit an ELF file (lib*.so.1) to remove RUNPATH? Do I also need to worry about RPATH in an ELF file?