OSDN Git Service

Minor updates.
[uclinux-h8/uClibc.git] / INSTALL
1
2 * Configuration:
3
4   ln -s ./extra/Configs/Config.<arch> ./Config
5
6 Then edit ./Config for your setup.  In particular, modify CROSS and
7 KERNEL_SOURCE as necessary.  You may also want to modify
8 SHARED_LIB_LOADER_PATH, DEVEL_PREFIX, and SYSTEM_DEVEL_PREFIX depending
9 on where you want to install the development environment.  By default,
10 the development environment is installed into /usr/<arch>-linux-uclibc/.
11
12
13 * Building:
14
15   make
16
17
18 * Installing the development environment:
19
20 (As root, if necessary,)
21
22   make install
23
24 This will install the header files, libraries, and the gcc
25 wrapper into the directories defined in Config.
26
27
28 * Installing the target runtime environment:
29
30 (As root, if necessary,)
31
32    make PREFIX=<temporary path> install_target
33
34 This installs only the files that are necessary to run binaries
35 compiled against uClibc.  Hint: You probably do not want to install
36 the target runtime environment on your host machine.
37
38
39 * Using uClibc:
40
41 To compile programs with uClibc,
42
43    export PATH={uClibc DEVEL_PREFIX}/bin:$PATH
44
45 and then just ./configure and make as usual.
46
47 Note: 
48
49         You may also want to look at extra/gcc-uclibc/gcc-uclibc.c for
50         additional information concerning what options and environment
51         variables the gcc wrapper handles.
52