[uClibc]buildroot can build a uClibc development system
Erik Andersen
andersen at codepoet.org
Thu Nov 14 11:55:22 UTC 2002
FYI... buildroot can now build a uClibc only development system.
Its been a long time in the making, but it now works. Building
things withing such a standalone system should avoid all of the
painful cross-configuration problems that have caused us such
grief.
So now that I have built a standalone uClibc development
system... Anybody know how to setup a Debian autobuilder? :-)
[andersen at dillweed buildroot]$ cp hello.c build/root/tmp/
[andersen at dillweed buildroot]$ sudo chroot build/root/
[root at dillweed /]# cd /tmp/
[root at dillweed bin]# which gcc
/usr/bin/gcc
[root at dillweed bin]# ldd /usr/bin/gcc
libc.so.0 => /lib/libc.so.0
/lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0
[root at dillweed tmp]# gcc -Wall -Os -s hello.c -o hello
[root at dillweed tmp]# ls -l ./hello
-rwxr-xr-x 1 root root 2164 Nov 14 11:38 ./hello
[root at dillweed tmp]# ldd ./hello
libc.so.0 => /lib/libc.so.0
/lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0
[root at dillweed tmp]# ./hello
hello world
[root at dillweed tmp]# gcc -Wall -Os -s hello.c -o hello -static
[root at dillweed tmp]# ldd ./hello
not a dynamic executable
[root at dillweed tmp]# ls -l ./hello
-rwxr-xr-x 1 root root 5276 Nov 14 11:41 ./hello
[root at dillweed tmp]# ./hello
hello world
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
-------------- next part --------------
An embedded message was scrubbed...
From: andersen at codepoet.org
Subject: cvs commit to buildroot/make by andersen
Date: Thu, 14 Nov 2002 04:09:42 -0700 (MST)
Size: 792
Url: http://lists.busybox.net/pipermail/uclibc/attachments/20021114/3d9077d1/attachment-0001.eml
More information about the uClibc
mailing list