[oe] Gstreamer and rpath

Richard Purdie rpurdie at rpsys.net
Sun Aug 5 11:29:01 UTC 2007


On Fri, 2007-08-03 at 11:34 +0200, Michael Krelin wrote:
> >>> I'm actually semi against forcing staging to look like an image. The
> >>> fact gcc requires this for its sysroot option is a sign that they
> >>> haven't got this right yet.
> >>>
> >> Why?
> > 
> > Well, why should I put libs in a /usr/lib directory rather that /lib? I
> > know there are guidelines but guidelines are one thing, forcing layouts
> > is a different thing.
> 
> Good question, thought doesn't have much to do with sysroot facility.
> You have exactly the same freedom like you would have with no sysroot,
> you're free to install in /usr, in / or in /do-not-enforce-layout/
> prefix. The only difference is that you don't have to adjust your paths
> to take staging prefix into account and you are not likey to pick up
> your host system stuff while compiling.
>
> About getting 'sysroot' right... Doesn't the name imply using in sysroot
> the same layout like you would otherwise?

No, as I understand it sysroot makes assumptions about where the files
live under it. It assumes "/lib" and "/usr/lib" and its those
assumptions which I dislike. I haven't seen a way to change them but I
could easily be missing something.

If gcc does change them based on the values of prefix, libdir etc when
compiled, that would be a bit better but its still hardcoding things
into the compiler which I don't think should be hardcoded there. Does
anyone know if it adapts to changes in prefix. libdir and friends?

Regards,

Richard





More information about the Openembedded-devel mailing list