On Thu, 15 Jan 2004, Toralf Lund wrote:Wouldn't that mean duplicating the link info, requiring lots of wrappers etc.?
Content-Type: text/plain; charset=us-ascii; format=flowed List-Id: General Red Hat Linux discussion list <redhat-list.redhat.com> Subject: Setting "RPATH" and/or "RUNPATH" of existing binary?
I'm not sure if this is the best forum for this kind of question, but...
Does anyone know if there is a way to set the DT_RPATH or DT_RUNPATH on an existing ELF binary? I.e. to produce the same effect as linker option "-rpath", but via a call made *after* the link is done?
I want this because it would be more practical than -rpath at compile time for a software package I'm building. Simply put, I have some apps that link with special DSOs that will be installed outside of /usr/lib, or possibly on a *subdirectory* of /usr/lib (I haven't reached a final decision on the exact layout yet.) The problem is that the build system (i.e. make) doesn't really know where this location is - but the packager does. (Yeah, I could tell make about it, but it would rise some build order issues etc.; I won't go into more detail here.)
Why not use LD_PRELOAD?
Doesn't seem to practical...
- Toralf
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list