Setting "RPATH" and/or "RUNPATH" of existing binary?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.)

- Toralf



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux