OSDN Git Service

Fix typo.
[uclinux-h8/uclibc-ng.git] / README
1
2 * Configuration:
3
4   cp ./extra/Configs/Config.<target arch> .Config
5
6 Then edit ./Config for your setup.  In particular, modify
7 CROSS and KERNEL_SOURCE as necessary.  You may also want
8 to modify PREFIX if you want to install the development
9 environment to /usr/local/ or elsewhere.  By default, the
10 development environment is installed into /usr and
11 /usr/<arch>-linux-uclibc/.
12
13
14 * Building:
15
16   make
17
18
19 * Installing the development environment:
20
21 (As root, if necessary,)
22
23   make install
24
25 This will install the header files, libraries, and the gcc
26 wrapper into the directories defined in Config.
27
28 If you are targetting the same architecture as the host machine,
29 you may want to add a link from /lib/ld-uClibc.0 to the location
30 where ld-uClibc.0 was installed.  This allows you to run binaries
31 compiled against uClibc without contaminating /lib too much.
32
33
34 * Installing the target runtime environment:
35
36 (As root, if necessary,)
37
38    make TARGET_PREFIX=`pwd`/_install install_target
39
40 This installs only the files that are necessary to run binaries
41 compiled against uClibc.  Hint: You really don't want to install
42 the target runtime environment on the host machine.
43
44
45 * Using uClibc:
46
47 To compile programs with uClibc,
48
49    export PATH={uClibc DEVEL_PREFIX}/bin:$PATH
50
51 and then just ./configure and make as usual.
52
53 Note: You may also want to look at extra/gcc-uclibc/gcc-uclibc.c for
54       additional information concerning what options and environment
55       variables the gcc wrapper handles.
56