Gentoo Archives: gentoo-embedded

From: Jakub Ladman <ladmanj@×××××.cz>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] gentoo cross-emerging for sh4 architecture
Date: Mon, 20 Feb 2006 15:49:03
In Reply to: Re: [gentoo-embedded] gentoo cross-emerging for sh4 architecture by Ned Ludd
Dne po 20. února 2006 05:46 Ned Ludd napsal(a):
> emerge does not read make.conf from $ROOT. > > You need to wrapper the command. > try a script that does something like. > > but replace the mips arch with sh for your case.
I have created following script. If i run memerge busybox, it fails with this and similar error: /usr/lib/gcc/sh4-pc-linux-uclibc/3.4.5/ undefined reference to `dl_iterate_phdr' collect2: ld returned 1 exit status make: *** [busybox] Error 1 If i commented out the LDFLAGS line in the script it works, but i thik it is linked for libraries on my host i686 system. Any ideas? Thank you. #!/bin/bash ARCH=sh4 ACCEPT_KEYWORDS="-x86 -~x86 sh ~sh" ROOT="/home/ladmanj/work_projects/mtdisk" CFLAGS="-Os -pipe" CXXFLAGS="${CFLAGS}" LDFLAGS="-L${ROOT}/lib -L${ROOT}/usr/lib" CBUILD=i686-pc-linux-gnu CHOST=sh4-pc-linux-uclibc CTARGET=sh4-pc-linux-uclibc CC=sh4-pc-linux-uclibc-gcc CXX=sh4-pc-linux-uclibc-g++ PKGDIR=/usr/portage/packages/sh4 USE="-* -X -glibc uclibc" export ARCH ACCEPT_KEYWORDS CFLAGS CXXFLAGS LDFLAGS ROOT CBUILD CHOST CTARGET CC CXX PKGDIR USE emerge -b $* -- gentoo-embedded@g.o mailing list