On Tuesday 26 September 2006 10:45, Vladimir Pouzanov wrote:
> On 9/23/06, Mike Frysinger <[EMAIL PROTECTED]> wrote:
> > looks like you're using wrong LDFLAGS ... what do you have yours set to ?
>
> Here goes an extract from my ${ROOT}/etc/make.conf:
> ROOT="/home/farcaller/develop/linux4palm/gentoo_root/"
> CFLAGS="-Os -pipe -mtune=xscale -I${ROOT}/usr/include"
> LDFLAGS="-L${ROOT}/usr/lib -L${ROOT}/lib"
> CXXFLAGS="${CFLAGS}"

this is the exact reason i've been telling/forcing people to switch over to 
sysroot cross-compilers

when you set LDFLAGS/CFLAGS like that, it screws up building some packages ... 
and i am 99% sure it is not a bug in the packages

use /usr/CTARGET as your development root and your $ROOT as the target runtime 
root ... that means if you need to build an application to install into ROOT, 
then the libraries to link against need to be emerged into /usr/CTARGET while 
the libraries to run against need to be emerged/copied into $ROOT
-mike

Attachment: pgp1bOmv7J89S.pgp
Description: PGP signature

Reply via email to