copile busybox using uclibc

Jul 25, 2006 5 Replies

hi, Can any one help me out how to compile busybox using uclibc. i am not getting where i have to make change so thet when i compile busybox it is copiled using uclibc thanks meenal



Edit the Maekfile and look for these lines:

110 # For other libraries, you are on your own... 111 #LDFLAGS+=-nostdlib 112 #LIBRARIES = $(LIBCDIR)/lib/libc.a -lgcc 113 #CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR) 114 #GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp")

Mogens

Meenal Gupta skrev:

Sorry, it didn't catch that you where a newbie.

When you compile the busybox project the standard gcc compiler and the standard libs will be use if nothing else is specified. If you want to tell gcc (the compiler) and ld (the linker) that it should a different lib you have to define "-nostdlib" and then tell the compiler and the linker where to find the libs you want to use insted of the standard libs. ( Hope that helped a bit :-) )

Do you use a cross compiler?

Which version of busybox do you use?

Mogens Meenal Gupta skrev:

Hello ,

One simple solution is, download a pre-built compiler which uses uclibc. USe that toolchain to build your busybox!

Best Regards, Vivekanandan M

Vivekanandan M you are right .... that is a god and easy solution.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required