blob: 83f4c6a72a60df6d51460ca8d24712438eb838df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
You can verify that dietlibc was successfully installed on your system
by entering the following on a bash prompt, f.e.:
printf '#include <unistd.h>\nint main(){write(1,"hello\\n",6);}\n' >_tmp.c
diet gcc -O2 -s _tmp.c
./a.out
you should see "hello" printed on screen
"size a.out" entered on prompt should print something like like this:
text data bss dec hex filename
679 8 40 727 2d7 a.out
Please note: You may get strange results on Slackware 13-64 multilib systems,
(like $ARCH being ignored by dietlibc's make itself).
Therefore it is recommended to build only on clean (64/32bit) installs.
|