Subject: Re: how do I adjust rpath?
To: Eric Haszlakiewicz <erh@jodi.nimenees.com>
From: Luke Mewburn <lukem@NetBSD.org>
List: netbsd-help
Date: 03/29/2005 17:25:51
--DFFMAMYvrfM3lt66
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Mar 28, 2005 at 07:00:06PM -0800, Jeremy C. Reed wrote:
  | On Mon, 28 Mar 2005, Eric Haszlakiewicz wrote:
  |=20
  | > 	I have an existing binary.  It's linked against a library in /foo/li=
b.
  | > I want to move the library to /bar/lib without re-compiling the binar=
y.
  | > 	This seems like something that should be easy to do, but I can't
  | > find the appropriate command and/or flag to do it.
  |=20
  | I believe pkgsrc/devel/elfsh can do this.
  |=20
  | And I have done this a few times with this tool:
  |  http://www.mail-archive.com/linux-gcc@vger.rutgers.edu/msg00317.html
  | It worked for me.

If strlen(newrpath) <=3D strlen(origrpath), just binary edit the file.
No special tools are required.

Otherwise, you'll have to relink from the original .o files.
The tools Jeremy refers to won't help here.

--DFFMAMYvrfM3lt66
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iD8DBQFCSQL/pBhtmn8zJHIRAiaFAJ4zXKLel9oB764YTSPklT+qg7KqjgCgumNp
dzM57ogNDIsfTBPdgUEJPTk=
=/SjZ
-----END PGP SIGNATURE-----

--DFFMAMYvrfM3lt66--