37437900b1273725b46634536b44f7d435ef1dbd
[openwrt/staging/chunkeey.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 endchoice
24
25 config GCC_USE_GRAPHITE
26 bool
27 prompt "Compile in support for the new Graphite framework in GCC 4.4+" if TOOLCHAINOPTS
28
29 config EXTRA_GCC_CONFIG_OPTIONS
30 string
31 prompt "Additional gcc configure options" if TOOLCHAINOPTS
32 default ""
33 help
34 Any additional gcc options you may want to include....
35
36 config GCC_DEFAULT_PIE
37 bool
38 prompt "Build executable with PIE enabled by default" if TOOLCHAINOPTS
39 depends on !GCC_USE_VERSION_5
40 default n
41 help
42 Use gcc configure option --enable-default-pie to turn on -fPIE and -pie by default.
43
44 config GCC_DEFAULT_SSP
45 bool
46 prompt "Build executable with Stack-Smashing Protection enabled by default" if TOOLCHAINOPTS
47 default n
48 help
49 Use gcc configure option --enable-default-ssp to turn on -fstack-protector-strong by default.
50
51 config GCC_LIBSSP
52 bool
53 prompt "Build gcc libssp" if TOOLCHAINOPTS
54 depends on !USE_MUSL
55 default y if !USE_MUSL
56 help
57 Enable Stack-Smashing Protection support
58
59 config SJLJ_EXCEPTIONS
60 bool
61 prompt "Use setjump()/longjump() exceptions" if TOOLCHAINOPTS
62 default n
63 help
64 Use old setjump()/longjump() exceptions instead of the newer
65 frame unwinding exceptions handling routines. Warning: increases
66 code size and runtime memory usage.
67
68 config INSTALL_GFORTRAN
69 bool
70 prompt "Build/install fortran compiler?" if TOOLCHAINOPTS
71 default n
72 help
73 Build/install GNU fortran compiler ?
74
75 config INSTALL_GCCGO
76 bool
77 prompt "Build/install Go compiler?" if TOOLCHAINOPTS
78 depends on USE_GLIBC || BROKEN
79 default n
80 help
81 Build/install GNU gccgo compiler ?