[uClibc]How to use uCLibc in a cross compile environement.

Cedric Aubert cedric_aubert at yahoo.fr
Wed Apr 23 15:45:44 UTC 2003


Hi thierry

I think your problem is during the configuration
of your uclibc cross compiler. You had to put your
SHARED_LIB_LOADER_PATH to /lib instead of
/usr/powerpc-linux-uclibc/lib/.

Try it and tell me what happen ! :-)

Cedric

--- Thierry De Corte <tdecorte at wavesat.com> wrote:
> Hi all,
> 
>     I'm working on a powerpc embeded target using a
> x86 host for
> development. My target use nfs to mount the root
> filesystem from my host
> /opt/mytarget directory.
> 
> I just crosscompiled/installed uClibc0.9.19 to
> /usr/powerpc-linux-uclibc/...
> for the host part and I installed the target part to
> /opt/mytarget/...
> 
> My problem is: if I compile a program using my host,
> the dynamic link to
> uclibc will point to:
>     libc.so.0 ->
> /usr/powerpc-linux-uclibc/lib/libc.so.0
> If I try to execute the program from my target
> (which is nfsroot mounted to
> /opt/mytarget), of course /usr/powerpc-linux/uclibc/
> doesn't exist so I have
> a unresolved symbol for libc. I don't want to copy
> /usr/powerpc-linux-uclibc/lib to my host /lib... so
> how can I make it work?
> 
> Another related question: How does uclibc-gcc
> wrapper knows the path to it's
> uclibc library? Is it hard coded at compile time?
> 
> Thanks
> 
> Thierry
> 
> 
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://uclibc.org/mailman/listinfo/uclibc


=====
AUBERT Cedric
SDEL Controle Commande
rue Nungesser & Coli
44860 St Aignan de Grand Lieu

E-mail : cedric_aubert at yahoo.fr
Http : http://www.controle-commande.sdel.fr/

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com


More information about the uClibc mailing list