mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.4 KiB

  1. Dietlibc-target
  2. ~~~~~~~~~~~~~~~
  3. Index
  4. ~~~~~
  5. 1) Preface
  6. 2) What is dietlibc
  7. 3) Prepare for the build
  8. 4) Build
  9. 1) Preface
  10. ~~~~~~~~~~
  11. Hi, this here is a small howto build the dietlibc target. I hope that it
  12. will be some time no more needed because the target will be so
  13. straightforward. Currently it is more a draft for a howto but who cares it
  14. is more then nothing, right ? ;-)
  15. Some pretty internal stuff is in Documentation/Developers/TODO . There
  16. are also current problems and bugs put together so even if you are not a
  17. developer you probably would like to read it.
  18. The target is currently experimental, so be careful because it can kill
  19. your pet, make your mother angry, make you sleepless or simply not work
  20. and/or compile.
  21. 2) What is dietlibc
  22. ~~~~~~~~~~~~~~~~~~~
  23. Dietlibc is a small alternative libc. In contrary to glibc it is not so
  24. bloated so it is very useful for embedded systems or installation disks
  25. where space is very expensive.
  26. Dietlibc is still under heavy development. There are many bugs that
  27. shall be fixed. But it is functional enough to try build a system based
  28. fully on dietlibc. (Someone has to start with it ;-) ) We will get this
  29. baby running helping the dietlibc developers find bugs in their child.
  30. ;-)
  31. 3) Prepare for the build
  32. ~~~~~~~~~~~~~~~~~~~~~~~~
  33. You have to install dietlibc. You can use the source that is being
  34. downloaded by rocklinux (you can find it in
  35. download/base/dietlibc/dietlibc-$ver.tar.bz2) or get it from
  36. http://www.fefe.de/dietlibc/
  37. The next step is to replace the cc command with a script that runs gcc
  38. with prepended diet wrapper. For this run this commands:
  39. # mv /usr/bin/cc /usr/bin/cc.bak
  40. # vi /usr/bin/cc
  41. And insert the following code in the file:
  42. #!/bin/sh
  43. exec diet gcc "$@"
  44. Then you have to change the rights for the shell script:
  45. # chmod +x /usr/bin/cc
  46. That is all that you need to do to start with the compile process of
  47. dietlibc target.
  48. 4) Build
  49. ~~~~~~~~
  50. Do the same what is described in Documentation/Build appropriately
  51. selecting dietlibc target in scripts/Config .
  52. Please disable the "Create cache files after packages have been built"
  53. option in the expert section of scripts/Config . It is not working
  54. AFAIK.
  55. That should be all.
  56. Send comments to the rocklinux mailing list (rock-linux@rocklinux.org)
  57. and/or directly to me (esden@rocklinux.org)
  58. (C) 2002 - 2003 by Piotr Esden-Tempski (esden@rocklinux.org)