d85e8cd402d48b9fd5b79b4c49490b73276bbc09
[librecmc/librecmc.git] / toolchain / gcc / Config.in
1 # Choose gcc version.
2
3 choice
4         prompt "GCC compiler Version" if TOOLCHAINOPTS
5         default GCC_USE_VERSION_7_1_ARC if arc
6         default GCC_USE_VERSION_7
7         help
8           Select the version of gcc you wish to use.
9
10         config GCC_USE_VERSION_7_1_ARC
11                 select GCC_VERSION_7_1_ARC
12                 bool "gcc 7.1.x with support of ARC cores"
13                 depends on arc
14
15         config GCC_USE_VERSION_5
16                 bool "gcc 5.x"
17                 depends on !arc
18
19         config GCC_USE_VERSION_7
20                 bool "gcc 7.x"
21                 depends on !arc
22
23         config GCC_USE_VERSION_8
24                 bool "gcc 8.x"
25 endchoice
26
27 config GCC_USE_GRAPHITE
28         bool
29         prompt "Compile in support for the new Graphite framework in GCC 4.4+" if TOOLCHAINOPTS
30
31 config EXTRA_GCC_CONFIG_OPTIONS
32         string
33         prompt "Additional gcc configure options" if TOOLCHAINOPTS
34         default ""
35         help
36             Any additional gcc options you may want to include....
37
38 config GCC_DEFAULT_PIE
39         bool
40         prompt "Build executable with PIE enabled by default" if TOOLCHAINOPTS
41         depends on !GCC_USE_VERSION_5
42         default n
43         help
44             Use gcc configure option --enable-default-pie to turn on -fPIE and -pie by default.
45
46 config GCC_DEFAULT_SSP
47         bool
48         prompt "Build executable with Stack-Smashing Protection enabled by default" if TOOLCHAINOPTS
49         default n
50         help
51             Use gcc configure option --enable-default-ssp to turn on -fstack-protector-strong by default.
52
53 config GCC_LIBSSP
54         bool
55         prompt "Build gcc libssp" if TOOLCHAINOPTS
56         depends on !USE_MUSL
57         default y if !USE_MUSL
58         help
59             Enable Stack-Smashing Protection support
60
61 config SJLJ_EXCEPTIONS
62         bool
63         prompt "Use setjump()/longjump() exceptions" if TOOLCHAINOPTS
64         default n
65         help
66             Use old setjump()/longjump() exceptions instead of the newer
67             frame unwinding exceptions handling routines.  Warning: increases
68             code size and runtime memory usage.
69
70 config INSTALL_GFORTRAN
71         bool
72         prompt "Build/install fortran compiler?" if TOOLCHAINOPTS
73         default n
74         help
75             Build/install GNU fortran compiler ?
76
77 config INSTALL_GCCGO
78         bool
79         prompt "Build/install Go compiler?" if TOOLCHAINOPTS
80         depends on USE_GLIBC || BROKEN
81         default n
82         help
83             Build/install GNU gccgo compiler ?