3 Compiling and running uClibc requires Linux kernel header files.
4 uClibc will be compiled to match the interfaces available in the
5 provided version of the Linux kernel headers. Linux kernel version
6 2.0, version 2.2, and version 2.4 are known to work. Other kernel
7 versions may work but havn't been tested. Its also helpful to have
8 a working version of GNU binutils, and GNU gcc -- using excessively
9 old versions of these packages can cause very strange errors that
10 are difficult to find and fix.
15 - Check the Rules.mak file and adjust CROSS to specify your cross-
16 compiler if you are cross compiling.
18 - Use must have a valid configuration file to compile uClibc. Do not
19 skip this step. New configuration options are added in each
20 release, and odd problems will turn up if your configuration file
21 is not set up as expected. If you want to carry your existing
22 configuration to a new version with minimal work, use "make
23 oldconfig", which will only ask you for the answers to new
26 - Available configuration commands are:
27 "make menuconfig" Text based color menus, radiolists & dialogs.
28 "make oldconfig" Default all questions based on the contents of
29 your existing ./.config file.
30 "make defconfig" Use defaults for all options.
31 "make randconfig" Use random values for all options.
32 "make allyesconfig" Set all values to "yes" for all options.
33 "make allnoconfig" Set all values to "no" for all options.
35 - uClibc does not have proper dependancy checking (yet) so if you
36 change your uClibc configuration, you must current rebuild the
37 entire library, by first running 'make clean'.
43 - Once you have a valid configuration file, just run 'make' to compile
48 INSTALLING the uClibc development environment:
50 - As root, if necessary, run:
54 This will install the header files, libraries, and the gcc wrapper
55 into the directories defined in Config.
58 INSTALLING the uClibc target runtime environment:
60 - As root, if necessary, run:
62 make PREFIX=<temporary path> install_target
64 This will install only the files that are necessary to run
65 binaries compiled against uClibc. Hint: You probably do not want
66 to install the target runtime environment into /lib on your host
72 - To compile programs with uClibc,
74 export PATH={uClibc DEVEL_PREFIX}/bin:$PATH
76 and then just run './configure' and 'make' as usual.
80 You may also want to look at extra/gcc-uclibc/gcc-uclibc.c for
81 additional information concerning what options and environment
82 variables the gcc wrapper handles.