Gentoo Archives: gentoo-embedded

From: Erwan Bracq <boxr1@××××.fr>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] crosscompile and libraries path
Date: Sat, 15 Jul 2006 08:19:47
Message-Id: 44B8B435.4030400@free.fr
In Reply to: Re: [gentoo-embedded] crosscompile and libraries path by Mike Frysinger
1 Hi,
2
3 Ok, thanks for this tips to force the bash build configure script. But
4 the first problem is due to libraries path (have a look on wrapper_log
5 in previous mail).
6
7 If I set LDFLAGS for some specific dirs with -L I'm breaking something
8 in cross-emerge and it can find the libc.
9
10 I need to do this because some external libraries are required (and
11 these libraries are inside the root_filesystem like libcurses.* for bash).
12
13 So my main problem is to give more path to the cross linker.
14
15 Here the result with the emerge command:
16
17
18 RESULT:
19
20
21 > arm-gentoo_arm11-linux-gnueabi-gcc -L./builtins -L./lib/readline
22 > -L./lib/readline -L./lib/glob -L./lib/tilde -L./lib/sh -rdynamic
23 > -fomit-frame-pointer -pipe -Os -mlittle-endian -mtune=arm1136jf-s
24 > -march=armv6 -o bash shell.o eval.o y.tab.o general.o make_cmd.o
25 > print_cmd.o dispose_cmd.o execute_cmd.o variables.o copy_cmd.o
26 > error.o expr.o flags.o nojobs.o subst.o hashcmd.o hashlib.o
27 > mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o
28 > version.o alias.o array.o arrayfunc.o braces.o bracecomp.o bashhist.o
29 > bashline.o list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o
30 > pcomplib.o syntax.o xmalloc.o -lbuiltins -lsh -lreadline -lhistory
31 > -lcurses -lglob -ltilde -ldl
32 > /usr/lib/gcc/arm-gentoo_mx11-linux-gnueabi/4.1.1/../../../../arm-gentoo_mx11-linux-gnueabi/bin/ld:
33 > cannot find -lcurses
34 > collect2: ld returned 1 exit status
35 > make: *** [bash] Error 1
36
37
38 COMMAND:
39 > ACCEPT_KEYWORDS="arm ~arm" ARCH="arm" ROOT="/opt/gentoo/devel_root"
40 > CHOST="arm-gentoo_arm11-linux-gnueabi" CBUILD="i686-pc-linux-gnu"
41 > CFLAGS="-fomit-frame-pointer -pipe -Os -mlittle-endian
42 > -mtune=arm1136jf-s -march=armv6" CXXFLAGS="${CFLAGS}" emerge bash
43
44
45 Thank you for your help.
46
47
48 R1.
49
50
51 Mike Frysinger wrote:
52 > On Friday 14 July 2006 13:30, Erwan Bracq wrote:
53 >
54 >> Now I want to cross compile bash
55 >>
56 >
57 > export ac_cv_func_setvbuf_reversed=no and try again
58 > -mike
59 >

Replies

Subject Author
Re: [gentoo-embedded] crosscompile and libraries path Mike Frysinger <vapier@g.o>