[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-alt
Subject:    Re: [gentoo-alt] RPATH/RUNPATH set  automatically in gcc - How?
From:       Fabian Groffen <grobian () gentoo ! org>
Date:       2010-11-30 17:42:26
Message-ID: 20101130174226.GK17499 () gentoo ! org
[Download RAW message or body]

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:
CPPFLAGS=-I/path/to/prefix/usr/include
LDFLAGS=-L/path/to/prefix/usr/lib ...


-- 
Fabian Groffen
Gentoo on a different level

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic