RPATH with multiple empty paths (e.g., ::::::::)
Brad King
brad.king at kitware.com
Mon Aug 4 19:46:53 CEST 2008
Thiago Macieira wrote:
> On Monday 04 August 2008 15:13:38 Brad King wrote:
>> If someone can tell me how to reserve space in the RPATH entry through
>> standard linker interfaces and without creating bogus paths, I would
>> love to use it. Until then, this is the only option to avoid relinking.
>
> There isn't one, not without help from binutils guys.
>
> But the point is: this kind of paths shouldn't appear in final, installed
> binaries. Gavin hasn't replied yet if that was the case.
>
> Can we approach the GNU binutils people? They seem to be very friendly when it
> comes to suggestions.
Sure. It shouldn't be too hard to implement because I can easily create
what I want by linking with the :::::: and then applying a second step
which replaces all those characters with '\0' bytes. However, that
approach doesn't work for people whose ld tools check the RPATH
immediately. We just need a flag that says how many extra zero bytes
should be allocated.
Are you volunteering, or asking me to do approach them?
-Brad
More information about the Kde-buildsystem
mailing list