Annotation of dietlibc/README, revision 1.5
1.5 ! fefe 1: The system library is a challenge to all those using the computer to
! 2: write their own faster and better routines or to bow to the superior
! 3: strength and skill of a true master.
! 4: --http://www.inner.net/users/cmetz/program-like-a-klingon
! 5:
1.2 fefe 6: diet libc to statically link programs that don't need all the bloat
1.1 cvs 7: from glibc.
8:
9: malloc, printf and scanf contributed from Olaf Dreesen.
10:
1.3 fefe 11: To compile:
1.1 cvs 12:
1.3 fefe 13: $ make
14:
15: make should compile the diet libc itself without warnings. In addition
16: to the diet libc, the default make target includes t, which is a test
17: program and probably contains code which produces warnings. You can
18: safely ignore them.
19:
20: When make is done, it will have created dietlibc.a in bin-i386 (or
21: bin-ppc, bin-alpha, bin-sparc, bin-ppc or bin-arm, depending on your
22: architecture). In that directory you will also find a program called
23: "diet", which you need to copy in a directory in your $PATH:
24:
25: # install bin-i386/diet /usr/local/bin
26:
27: Then you can compile programs by prepending diet to the command line,
28: i.e.
29:
30: $ diet gcc -s -Os -pipe -o t t.c
31:
32: diet is cross-compiler friendly and can also be used like this:
33:
34: $ diet sparc-linux-gcc -o t t.c
35:
36: diet will then link against dietlibc.a from bin-sparc, of course.
37: diet comes with a man page (diet.1), which you can copy to an
38: appropriate location, too:
39:
40: # cp diet.1 /usr/local/man/man1
41:
42: After you compiled the diet libc successfully, I invite you to check out
43: the embedded utils (http://www.fefe.de/embutils/) and the diet libc
44: binary repository (ftp://foobar.math.fu-berlin.de/pub/dietlibc/), too.
45: The embedded utils are small replacements for common utilities like mv,
46: chown, ls, and even a small tar that can extract tar files. The binary
47: repository contains a few utilities I linked against the diet libc, for
48: example gzip, bzip2 and fdisk.
1.4 fefe 49:
50:
51: The license for the diet libc is the GNU General Public License, version
52: 2 (as included in the file COPYING). The glob() and entlib sources were
53: contributed and are licensed under the GNU Lesser General Public
54: License, as available on http://www.gnu.org/copyleft/lesser.html.
LinuxTV legacy CVS <linuxtv.org/cvs>