This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: some library questions


On Wed, Oct 29, 2003 at 05:07:13PM +0100, Philippe De Swert wrote:
> I'm doing my master thesis about embedded linux and I have some questions that
> google and a lot of FAQ's could not resolve (nor the crossgcc mailing list
> archive). I might have overlooked something but I hope to get an answer if I did.

> Well, I've had a lot of trouble generating a toolchain (manually) with glibc.
> Now I would like to use uClibc on my platform. Do I have to generate a new
> toolchain with instead of glibc uClibc. Or does it not matter? 
> Can I just compile with the cross-compiler uClibc, try to link the applications
> to uClibc with their wrapper and then copy the whole lot to a rootfs?

There are 2 options building a toolchain that links against uClibc....
1) build a toolchain that used uClibc instead of glibc
   (IMHO this is easier than to build a glibc based toolchain)
   use the 'normal' gcc to build...
   
2) build a glibc based toolchain, and compile the uClibc wrapper
   use the wrappers to compile your programs...

A script with a bit documentation for solution 1) can be found at:
http://www.uclibc.org/cgi-bin/cvsweb/toolchain/

The wrapper solution is quite easy, should be documented in uclibc
itself.....

hth - Marc

-- 
#!/bin/sh
set - `type $0` 'tr "[a-zA-Z]" "[n-za-mN-ZA-M]"';while [ "$2" != "" ];do \
shift;done; echo 'frq -a -rc '`echo "$0"| $1 `'>$UBZR/.`rpub signature|'`\
echo $1|$1`'`;rpub "Jr ner fvtangher bs obet. Erfvfgnapr vf shgvyr!"'|$1|sh

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]