Gentoo Archives: gentoo-embedded

From: Mike Frysinger <vapier@g.o>
To: Vladimir Pouzanov <farcaller@×××××.com>
Cc: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] cannot find /lib/libc.so.6
Date: Tue, 26 Sep 2006 16:06:06
Message-Id: 200609261204.27257.vapier@gentoo.org
In Reply to: Re: [gentoo-embedded] cannot find /lib/libc.so.6 by Vladimir Pouzanov
1 On Tuesday 26 September 2006 10:45, Vladimir Pouzanov wrote:
2 > On 9/23/06, Mike Frysinger <vapier@g.o> wrote:
3 > > looks like you're using wrong LDFLAGS ... what do you have yours set to ?
4 >
5 > Here goes an extract from my ${ROOT}/etc/make.conf:
6 > ROOT="/home/farcaller/develop/linux4palm/gentoo_root/"
7 > CFLAGS="-Os -pipe -mtune=xscale -I${ROOT}/usr/include"
8 > LDFLAGS="-L${ROOT}/usr/lib -L${ROOT}/lib"
9 > CXXFLAGS="${CFLAGS}"
10
11 this is the exact reason i've been telling/forcing people to switch over to
12 sysroot cross-compilers
13
14 when you set LDFLAGS/CFLAGS like that, it screws up building some packages ...
15 and i am 99% sure it is not a bug in the packages
16
17 use /usr/CTARGET as your development root and your $ROOT as the target runtime
18 root ... that means if you need to build an application to install into ROOT,
19 then the libraries to link against need to be emerged into /usr/CTARGET while
20 the libraries to run against need to be emerged/copied into $ROOT
21 -mike

Replies

Subject Author
Re: [gentoo-embedded] cannot find /lib/libc.so.6 Daniel Glaser <daniel.glaser@××××××××××××.com>
Re: [gentoo-embedded] cannot find /lib/libc.so.6 Vladimir Pouzanov <farcaller@×××××.com>