[BusyBox] Compiling busybox with uClibc
Ng Kwang Loong Stanley
ngstanley at cwc.nus.edu.sg
Mon Mar 12 05:16:56 UTC 2001
I tried to compile busybox with uClibc based on the following Makefile
configuration. However I checked that binary busybox uses native shared
libraries. Is the compilation correct ? Busybox suppose to use the
native shared libraries ? If not, what flags should i put to remove the
native libraries
thanks
[root at Mon Mar 12 /opt/Lineo/busybox-0.49]# ldd ./busybox
/lib/libNoVersion.so.1 => /lib/libNoVersion.so.1 (0x40015000)
libuClibc.so.1 => /lib/libuClibc.so.1 (0x4001d000)
libc.so.6 => /lib/libc.so.6 (0x4004a000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
MAKEFILE:
----------------------------------------------------------------------
# If you are running a cross compiler, you may want to set this
# to something more interesting, like "powerpc-linux-".
CROSS =
CC = $(CROSS)gcc
STRIPTOOL = $(CROSS)strip
# To compile vs uClibc, just use the compiler wrapper built by uClibc...
# Isn't that easy? Right now, uClibc needs BB_FEATURE_NFSMOUNT disabled
# since uClibc's nfs support isn't ready yet.
CC = /opt/Lineo/uClibc/extra/gcc-uClibc/gcc-uClibc-i386
# To compile vs some other alternative libc, you may need to use/adjust
# the following lines to meet your needs...
LIBCDIR=/opt/Lineo/uClibc
LDFLAGS+=-nostdlib
LIBRARIES = -luClibc -lgcc $(LIBCDIR)/crt0.o
CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR)
GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install:
\(.*\)/\1include/gp")
More information about the busybox
mailing list