On 22-04-2010 20:55:58 -0500, Johan Hattne wrote:
> As far as I can see, setting the rpath is one way to solve the problem,
> and I've been toying around with patchelf to accomplish that (chrpath
> won't work, because it doesn't allow rpaths to grow). To my mind, the
I'd like to add it to the tree when I've got time to make an ebuild for
it.
> process is conceptually similar to the "shebang prefixing" that happens
> for shell scripts, so I'm wondering whether it would make sense to
> implement it in a similar fashion, e.g.
>
> for each ELF file {
> prepend ${EPREFIX} to each rpath element
> prepend ${EPREFIX}/lib:${EPREFIX}/usr/lib to rpath
> }
>
> somewhere in portage. At least this allowed me to use icc to compile a
> 32 bit helloworld using an x86-prefix on both x86 and amd64.
Do you have an idea how to automagically select the correct ELF files?
Most already contain the required paths of course. I don't quickly see
how we can pick the right ones out there to "fix", but perhaps that's
possible. Otherwise, maybe a function in prefix.eclass that does the
job somehow?
--
Fabian Groffen
Gentoo on a different level