readline: Pass -ltinfo
[openadk.git] / docs / configure.txt
blob9414302e8a6b6789daba3b172db7c75cc9db8b93
1 // -*- mode:doc; -*-
2 // vim: set syntax=asciidoc:
4 [[toolchain]]
6 Cross-compilation toolchain
7 ---------------------------
9 A compilation toolchain is the set of tools that allows you to compile
10 code for your system. It consists of a compiler,
11 binary utils like assembler and linker and a
12 C standard library. 
14 The system installed on your development station certainly already has
15 a compilation toolchain that you can use to compile an application
16 that runs on your system. If you're using a PC, your compilation
17 toolchain runs on an x86 processor and generates code for an x86
18 processor. Under most Linux systems, the compilation toolchain uses
19 the GNU libc (glibc) as the C standard library. This compilation
20 toolchain is called the "host compilation toolchain". The machine on
21 which it is running, and on which you're working, is called the "host
22 system" footnote:[This terminology differs from what is used by GNU
23 configure, where the host is the machine on which the application will
24 run (which is usually the same as target)].
26 The compilation toolchain is provided by your distribution, and
27 OpenADK has nothing to do with it (other than using it to build a
28 cross-compilation toolchain and other tools that are run on the
29 development host).
31 As said above, the compilation toolchain that comes with your system
32 runs on and generates code for the processor in your host system. As
33 your embedded system has a different processor, you need a
34 cross-compilation toolchain - a compilation toolchain that runs on
35 your _host system_ but generates code for your _target system_ (and
36 target processor). For example, if your host system uses x86 and your
37 target system uses ARM, the regular compilation toolchain on your host
38 runs on x86 and generates code for x86, while the cross-compilation
39 toolchain runs on x86 and generates code for ARM.
41 You can choose between three C libraries:
42 http://www.uclibc-ng.org[uClibc-ng],
43 http://www.gnu.org/software/libc/libc.html[glibc],
44 http://www.musl-libc.org[musl] and
45 https://sourceware.org/newlib/[newlib].
47 There are some configuration options provided in +Toolchain settings+.
48 You can enable or disable the building of following components and toolchain
49 options:
51 * Optimization level
53 * Stack Smashing Protection (SSP) support
55 * Position Independent Executable (PIE) support
57 * Link Time Optimization (LTO) support
59 * GNU Hashstyle support
61 * GOLD LD support