1aadae68398fd93ddbecb36c2b97490f4d72901a
[openwrt/openwrt.git] / toolchain / gcc / Config.in
1 # Choose gcc version.
2
3 choice
4 prompt "GCC compiler Version" if TOOLCHAINOPTS
5 default GCC_USE_VERSION_8
6 help
7 Select the version of gcc you wish to use.
8
9 config GCC_USE_VERSION_5
10 bool "gcc 5.x"
11 depends on !arc
12
13 config GCC_USE_VERSION_7
14 bool "gcc 7.x"
15 depends on !arc
16
17 config GCC_USE_VERSION_8
18 bool "gcc 8.x"
19
20 config GCC_USE_VERSION_9
21 bool "gcc 9.x"
22
23 config GCC_USE_VERSION_10
24 bool "gcc 10.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 SJLJ_EXCEPTIONS
54 bool
55 prompt "Use setjump()/longjump() exceptions" if TOOLCHAINOPTS
56 default n
57 help
58 Use old setjump()/longjump() exceptions instead of the newer
59 frame unwinding exceptions handling routines. Warning: increases
60 code size and runtime memory usage.
61
62 config INSTALL_GFORTRAN
63 bool
64 prompt "Build/install fortran compiler?" if TOOLCHAINOPTS
65 default n
66 help
67 Build/install GNU fortran compiler ?
68
69 config INSTALL_GCCGO
70 bool
71 prompt "Build/install Go compiler?" if TOOLCHAINOPTS
72 depends on USE_GLIBC || BROKEN
73 default n
74 help
75 Build/install GNU gccgo compiler ?