summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/README
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-05-14 14:19:32 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-05-14 14:19:32 +0000
commit167217bec15c9c7aa70ba2a3dc9c689b3cd91872 (patch)
tree7c0c62debf8f9f145643102fb52b81afce743594 /mdk-stage1/dietlibc/README
parent9097327dc1c667fc51b8e05cc7c0626fac96665d (diff)
downloaddrakx-backup-do-not-use-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar
drakx-backup-do-not-use-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar.gz
drakx-backup-do-not-use-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar.bz2
drakx-backup-do-not-use-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar.xz
drakx-backup-do-not-use-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.zip
import new version of dietlibc
Diffstat (limited to 'mdk-stage1/dietlibc/README')
-rw-r--r--mdk-stage1/dietlibc/README44
1 files changed, 38 insertions, 6 deletions
diff --git a/mdk-stage1/dietlibc/README b/mdk-stage1/dietlibc/README
index c17aefcc5..ce9838832 100644
--- a/mdk-stage1/dietlibc/README
+++ b/mdk-stage1/dietlibc/README
@@ -1,11 +1,43 @@
-diet glibc to statically link programs that don't need all the bloat
+diet libc to statically link programs that don't need all the bloat
from glibc.
malloc, printf and scanf contributed from Olaf Dreesen.
-Usage:
- gcc -I~/dietlibc/include -Os -pipe -c *.c
- gcc -nostdlib -o ncp ~/dietlibc/start.o *.o ~/dietlibc/dietlibc.a
+To compile:
-If you use the glibc includes, directory reading (and maybe other
-functions) will fail. You have been warned!
+ $ make
+
+make should compile the diet libc itself without warnings. In addition
+to the diet libc, the default make target includes t, which is a test
+program and probably contains code which produces warnings. You can
+safely ignore them.
+
+When make is done, it will have created dietlibc.a in bin-i386 (or
+bin-ppc, bin-alpha, bin-sparc, bin-ppc or bin-arm, depending on your
+architecture). In that directory you will also find a program called
+"diet", which you need to copy in a directory in your $PATH:
+
+ # install bin-i386/diet /usr/local/bin
+
+Then you can compile programs by prepending diet to the command line,
+i.e.
+
+ $ diet gcc -s -Os -pipe -o t t.c
+
+diet is cross-compiler friendly and can also be used like this:
+
+ $ diet sparc-linux-gcc -o t t.c
+
+diet will then link against dietlibc.a from bin-sparc, of course.
+diet comes with a man page (diet.1), which you can copy to an
+appropriate location, too:
+
+ # cp diet.1 /usr/local/man/man1
+
+After you compiled the diet libc successfully, I invite you to check out
+the embedded utils (http://www.fefe.de/embutils/) and the diet libc
+binary repository (ftp://foobar.math.fu-berlin.de/pub/dietlibc/), too.
+The embedded utils are small replacements for common utilities like mv,
+chown, ls, and even a small tar that can extract tar files. The binary
+repository contains a few utilities I linked against the diet libc, for
+example gzip, bzip2 and fdisk.