README 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. uClibc - a Small C Library for Linux
  2. Erik Andersen <andersen@codepoet.org>
  3. uClibc (aka µClibc/pronounced yew-see-lib-see) is a C library for
  4. developing embedded Linux systems. It is much smaller than the
  5. GNU C Library, but nearly all applications supported by glibc
  6. also work perfectly with uClibc. Porting applications from glibc
  7. to uClibc typically involves just recompiling the source code.
  8. uClibc even supports shared libraries and threading. It currently
  9. runs on standard Linux and MMU-less (also known as µClinux)
  10. systems with support for alpha, ARM, cris, h8300, i386, i960,
  11. m68k, mips/mipsel, PowerPC, SH, SPARC, and v850 processors.
  12. If you are building an embedded Linux system and you find that
  13. glibc is eating up too much space, you should consider using
  14. uClibc. If you are building a huge fileserver with 12 Terabytes
  15. of storage, then using glibc may make more sense. Unless, for
  16. example, that 12 Terabytes will be Network Attached Storage and
  17. you plan to burn Linux into the system's firmware...
  18. uClibc is maintained by Erik Andersen and is licensed under the
  19. GNU LIBRARY GENERAL PUBLIC LICENSE . This license allows you to
  20. make closed source commercial applications using an unmodified
  21. version of uClibc (Please consider sharing some of the money you
  22. make ;-). You do not need to give away all your source code just
  23. because you use uClibc and/or run on Linux.
  24. For installation instructions, see the file INSTALL.
  25. This distribution contains a wrapper for gcc and ld that allows
  26. you to use existing toolchains that were targetted for glibc.
  27. There are limits as to what this wrapper can do, so it is
  28. recommended that you instead build a full binutils/gcc toolchain.
  29. uClibc strives to be standards compliant, which means that most
  30. documentation written for SuSv3, or for glibc also applies to
  31. uClibc functions. However, many GNU extensions are not supported
  32. because they have not been ported, or more importantly, would
  33. increase the size of uClibc disproportional to the added
  34. functionality.
  35. Additional information (recent releases, FAQ, mailing list, bugs,
  36. etc.) can be found at http://www.uclibc.org/.
  37. uClibc may be freely modified distributed under the terms of the
  38. GNU Library General Public License, which can be found in the
  39. file COPYING.LIB.
  40. Please Note:
  41. There is an unwholesomely huge amount of code out there
  42. that depends on the presence of GNU libc header files.
  43. We have GNU libc compatible header files. So we have
  44. committed a horrible sin in uClibc. We _lie_ and claim
  45. to be GNU libc in order to force these applications to
  46. work as their developers intended. This is IMHO,
  47. pardonable, since these defines are not really intended
  48. to check for the presence of a particular library, but
  49. rather are used to define an _interface_. Some programs
  50. are especially chummy with glibc, and may need this
  51. behavior disabled by adding CFLAGS+=-D__FORCE_NOGLIBC