Gentoo Archives: gentoo-embedded

From: Daniel Glaser <daniel.glaser@××××××××××××.com>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] Libraries and Cross-compiling with portage
Date: Mon, 25 Sep 2006 07:06:58
Message-Id: 451780E2.8000804@chaintronics.com
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Hello,
5
6 after building a root directory (with ppc-stage3 and portage-latest)
7 and crating a cross-toolchain, I want to know how to teach emerge to
8 take the libraries out of the target root when emerging like the following
9
10 e.g.
11 ROOT=/var/ppc-embedded PORTAGE_CONFIGROOT=/var/ppc-embedded emerge bash
12
13 This crashes while searching for libcurses, because it finds my i686
14 one I think
15
16 This is the outout of the emerge try:
17
18 powerpc-somewhat-linux-gnu-gcc -L./builtins -L./lib/readline
19 - -L./lib/readline -L./lib/glob -L./lib/tilde -L./lib/sh -rdynamic
20 - -O2 -mcpu=405 -mtune=405 -pipe -o bash shell.o eval.o y.tab.o
21 general.o make_cmd.o print_cmd.o dispose_cmd.o execute_cmd.o
22 variables.o copy_cmd.o error.o expr.o flags.o nojobs.o subst.o
23 hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o
24 sig.o test.o version.o alias.o array.o arrayfunc.o braces.o
25 bracecomp.o bashhist.o bashline.o list.o stringlib.o locale.o
26 findcmd.o redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o -lbuiltins
27 - -lsh -lreadline -lhistory -lcurses -lglob -ltilde -ldl
28 /usr/libexec/gcc/powerpc-cinewave-linux-gnu/ld: cannot find -lcurses
29 collect2: ld returned 1 exit status
30
31 All libraries are installed correctly in the root, but when emerging
32 some package that depends on this libs, I'm encountiering problems
33 that the lib is taken from /usr/lib...
34 Now, how to solve it? Emerge takes e.g. the settings correctly out of
35 /var/ppc-embedded/etc/make.conf what about the libs?
36
37 best regards
38 themole
39 -----BEGIN PGP SIGNATURE-----
40 Version: GnuPG v1.4.5 (MingW32)
41 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
42
43 iD8DBQFFF4DbLA0LfkMzpGMRAksCAJkBjPmFlK3i3QyBNeo9Z6XR7BfAyQCfdXA7
44 CXFMc94AKnhIJgvNOyU6KNI=
45 =eBVn
46 -----END PGP SIGNATURE-----
47
48 --
49 gentoo-embedded@g.o mailing list