[oe] Gstreamer and rpath

Stanislav Brabec utx at penguin.cz
Fri Aug 3 09:21:41 UTC 2007


Richard Purdie 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.
> 
> With packaged staging we need to decide which way we go, separate
> staging packages or use the same ones as we use for images.
> 
> My personal gut feeling is that separate ones will work better. They
> also mean we can handle the extra staging files like pkgmaps and perhaps
> handle multi machine easier.

Well, the point of gcc --sysroot is a simplification of cross
compilation for those using complete sysroot environment.

Maybe we have a good reason to not use sysroot, but then we have to
invent a different solution.

Manual enabling/disabling rpath is a bad solution. Better solutions is a
compiler wrapper knowing our rewrite rules.

For example:
arm-angstrom-gueabi-gcc -I/usr/include/ssl -L/usr/lib/purple-2 -loscar -lm
may be rewritten for example to:
arm-angstrom-gueabi-gcc -nostdinc -nostdlib -L/path/to/staging/platform/lib -L/path/to/staging/model/lib -I/path/to/staging/noarch/include -I/path/to/staging/platform/include -L/path/to/staging/model/include -I/path/to/staging/platform/include/ssl -I/path/to/staging/model/include/ssl -L/path/to/staging/platform/lib/purple-2 -L/path/to/staging/model/lib/purple-2 -loscar -lm

Such wrapper must not modify rpath, -D and other arguments with paths.

But for example AC_CHECK_FILE modification to work with such structure
would be complicated.

But maybe there is possible to invent better method than the sysroot
design is.


A random idea:

Define TARGET_ROOT_MAP, which may use similar syntax like overlay
filesystems have. It will allow to construct sysroot by these
filesystems on fly as well, e. g. for use with emulators.

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: sbrabec at suse.cz
Lihovarská 1060/12                            tel: +420 284 028 966
190 00 Praha 9                                fax: +420 284 028 951
Czech Republic                                http://www.suse.cz/





More information about the Openembedded-devel mailing list