[oe] Gstreamer and rpath

Stanislav Brabec utx at penguin.cz
Sun Aug 5 20:21:19 UTC 2007


Michael Krelin píše v Ne 05. 08. 2007 v 18:27 +0200:
> >> 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.
> 
> I think it's not exactly what it assumes. It assumes that what would be
> /usr/lib/ without sysroot would be ${sysroot}/usr/lib/
> 
> > 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?
> 
> I think if you compile it with /opt/gcc prefix it would look in
> ${sysroot}/opt/gcc for whatever he wants based on his prefix and if you
> -I/i-hate-fhs/ it would look into ${sysroot}/i-hate-fhs/

Yes, --sysroot prefixes all -I and -L and similar paths with sysroot
value. But it does not touch other paths, so -DUGLYPATH="/i-hate-fhs" or
-Wl,-rpath -Wl,/i-hate-fhs will remain untouched. It is what one should
expect - only compile-time paths are changes.


________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utxzaurus





More information about the Openembedded-devel mailing list