This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
modifying rpaths on executables
- From: Jeremy Sanders <jss at ast dot cam dot ac dot uk>
- To: binutils at sources dot redhat dot com
- Date: Fri, 22 Aug 2003 11:09:22 +0100 (BST)
- Subject: modifying rpaths on executables
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I think this question has come up some time in the past, but maybe the
situation has changed.
We've got a set of enormous packages, and each set of developers decided
to ship their own C++ libraries in their distributions, and modify the
LD_LIBRARY_PATH to add their own C++ library to the path. As you can
imagine this is a horrible mess with several packages like this. Of course
their provide the source for the packages, but their build systems are so
broken that it's virtually impossible to get the systems to build
yourself. One package requires you run make to ignore errors, and when
you do this it decides to go on an infinite loop.
One solution is to provide a wrapper script to mirror the packages bin
directory modifying the LD_LIBRARY_PATH.
The best solution would be to stick in an rpath into each executable to
avoid having to set LD_LIBRARY_PATH. Is there an obvious way in which to
do this? Would I have any hope in writing code to do this unless I have a
good understanding of the elf format?
Thanks
Jeremy
- --
Jeremy Sanders <jss@ast.cam.ac.uk> http://www-xray.ast.cam.ac.uk/~jss/
X-Ray Group, Institute of Astronomy, University of Cambridge, UK.
Public Key Server PGP Key ID: E1AAE053
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE/RevY/rwa3eGq4FMRAkDVAKCxDr9lr6DwTIXbR4SbIcZo0MQv1ACdGetf
ktdPKzLnO1vFCw7M8HOGYQY=
=CeeT
-----END PGP SIGNATURE-----