Gentoo Archives: gentoo-embedded

From: thomas.cooksey@××.com
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] Confussed.. What happend when cross emerging libs?
Date: Sun, 11 Feb 2007 21:20:05
Message-Id: 0536FC9B908BEC4597EE721BE6A3538913868B0F@i2km07-ukbr.domain1.systemhost.net
1 Hello.
2
3 I'm currently working on porting Gentoo to gumstix modules. (www.gumstix.com).
4
5 I'm putting together my own profile based on full-blown baselayout, but using busybox to replace a lot of coreutils etc.
6
7 Although I'm using baselayout, I still don't want a toolchain (or portage) on the target, so I've used crossdev to generate an arm-softfloat-linux-uclibc toolchain based on gcc 3.4.6.
8
9 Everything was going (reasonably) well until I got to module-init-tools. This package requires zlib. Now, zlib emerges fine, however it puts its headers in $ROOT/usr/include, which doesn't seem to be in the include search path when emerging module-init-tools. Ergo, module-init-tools fails when compiling.
10
11 Now, this can be easily fixed by simply copying across the headers or adding it to the search path. However, the crux of the problem is that neither the headers, nor the static library (libz.a) should be installed on the target. Only the dynamic library should be installed onto the target.
12
13 In my mind, there's 2 ways of doing this: You could pass extra params when emerging zlib to give it the dir of the toolchain to install into. Or, you could extend crossdev to support emerging of arbitrary libraries into the toolchain dir. Or it should work a completely different way I've not thought of/don't know about.
14
15 I'm pretty early into the port and am worried more libraries are going to have the same problem. How _should_ this work?
16
17 I'm leaning towards giving crossdev the ability to install any library into the toolchain. However, that then breaks when a dynamic library is needed on the target.
18
19
20 Please help me, my brain aches.
21
22
23 Cheers,
24
25 Tom
26 --
27 gentoo-embedded@g.o mailing list