Annotation of dietlibc/README, revision 1.9

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.9     ! leitner     6: Use 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: 
1.7       fefe       15: make should compile the diet libc itself.
1.3       fefe       16: 
                     17: When make is done, it will have created dietlibc.a in bin-i386 (or
                     18: bin-ppc, bin-alpha, bin-sparc, bin-ppc or bin-arm, depending on your
                     19: architecture).  In that directory you will also find a program called
                     20: "diet", which you need to copy in a directory in your $PATH:
                     21: 
                     22:        # install bin-i386/diet /usr/local/bin
                     23: 
                     24: Then you can compile programs by prepending diet to the command line,
                     25: i.e.
                     26: 
                     27:        $ diet gcc -s -Os -pipe -o t t.c
                     28: 
                     29: diet is cross-compiler friendly and can also be used like this:
                     30: 
                     31:        $ diet sparc-linux-gcc -o t t.c
                     32: 
                     33: diet will then link against dietlibc.a from bin-sparc, of course.
                     34: diet comes with a man page (diet.1), which you can copy to an
                     35: appropriate location, too:
                     36: 
                     37:        # cp diet.1 /usr/local/man/man1
                     38: 
                     39: After you compiled the diet libc successfully, I invite you to check out
1.8       leitner    40: the embedded utils (http://www.fefe.de/embutils/).  The embedded utils
                     41: are small replacements for common utilities like mv, chown, ls, and even
                     42: a small tar that can extract tar files.
1.4       fefe       43: 
                     44: 
                     45: The license for the diet libc is the GNU General Public License, version
1.8       leitner    46: 2 (as included in the file COPYING) or later.

LinuxTV legacy CVS <linuxtv.org/cvs>