RPATH/RUNPATH set automatically in gcc - How?
On 30-11-2010 18:37:37 +0100, justin wrote:
> on prefix the RPATH/RUNPATH is automatically set to mach libraries from
> the prefix. How is that done? And can we implement a solution for icc/ifc?
We "patched" gcc to have the prefix usr/include included in the search
path, and we have an extended ld-wrapper that includes the library paths
from the prefix on every ld invocation.
You can't modify icc (I presume) so the first is difficult, but if
you're lucky you icc calls /usr/bin/ld which still can be the ld-wrapper
like we use.
The thing that should work, and that we have to use during bootstrap,
and platforms that don't have a gcc/ld that we build ourselves:
Gentoo on a different level