-To build uClibc,
+To build and install the uClibc development environment,
1) cp ./extra/Configs/Config.<your arch> ./Config
2) Edit ./Config for your setup.
3) make
-4) As root, make install
+4) make install_dev (as root if necessary, depending on your Config)
+
+
+To install the runtime environment,
+ make install_target (again, as root if necessary)
To compile programs with uClibc,
-export PATH={uClibc DEVEL_PREFIX/ROOT_DIR}/bin:$PATH
+ export PATH={uClibc DEVEL_PREFIX/ROOT_DIR}/bin:$PATH
and then just ./configure and make as usual.
TOPDIR=../../
include $(TOPDIR)Rules.mak
-CFLAGS=-Wall -Os -I- -I../../include -I.
+CFLAGS=-Wall -Os -I- -I. --uclibc-use-build-dir
CC = $(TOPDIR)extra/gcc-uClibc/$(NATIVE_ARCH)-uclibc-gcc
all: ldconfig ldd readelf
$(CC) $(CFLAGS) readelf.c -o $@
ldconfig: ldconfig.o readsoname.o
- $(CC) $(CFLAGS) $^ -o $@
+ $(CC) $(CFLAGS) -static $^ -o $@
ldd: ldd.o readsoname.o
$(CC) $(CFLAGS) $^ -o $@