pass ARCH down to uClibc
[buildroot.git] / toolchain / gcc / Config.in
blobed87319f78b3d325959a689569340c419ef9c437
1 # Choose gcc version.
3 comment "GCC Options"
5 choice
6         prompt "GCC compiler Version"
7         default BR2_GCC_VERSION_4_3_3
8         help
9           Select the version of gcc you wish to use.
11         config BR2_GCC_VERSION_3_4_6
12                 depends on !BR2_avr32
13                 bool "gcc 3.4.6"
15         config BR2_GCC_VERSION_4_0_4
16                 depends on !BR2_avr32 && !BR2_nios2
17                 depends on BR2_DEPRECATED
18                 bool "gcc 4.0.4"
20         config BR2_GCC_VERSION_4_1_2
21                 depends on !BR2_nios2
22                 bool "gcc 4.1.2"
24         config BR2_GCC_VERSION_4_2_0
25                 depends on !BR2_avr32 && !BR2_nios2
26                 depends on BR2_DEPRECATED
27                 bool "gcc 4.2.0"
29         config BR2_GCC_VERSION_4_2_1
30                 depends on !BR2_avr32 && !BR2_nios2
31                 depends on BR2_DEPRECATED
32                 bool "gcc 4.2.1"
34         config BR2_GCC_VERSION_4_2_2
35                 depends on !BR2_avr32 && !BR2_nios2
36                 depends on BR2_DEPRECATED
37                 bool "gcc 4.2.2"
39         config BR2_GCC_VERSION_4_2_3
40                 depends on !BR2_avr32 && !BR2_nios2
41                 depends on BR2_DEPRECATED
42                 bool "gcc 4.2.3"
44         config BR2_GCC_VERSION_4_3_0
45                 depends on !BR2_avr32 && !BR2_nios2
46                 depends on BR2_DEPRECATED
47                 bool "gcc 4.3.0"
49         config BR2_GCC_VERSION_4_3_1
50                 depends on !BR2_avr32 && !BR2_nios2
51                 depends on BR2_DEPRECATED
52                 bool "gcc 4.3.1"
54         config BR2_GCC_VERSION_4_3_2
55                 depends on !BR2_avr32 && !BR2_nios2
56                 depends on BR2_DEPRECATED
57                 bool "gcc 4.3.2"
59         config BR2_GCC_VERSION_4_3_3
60                 depends on !BR2_avr32 && !BR2_nios2
61                 bool "gcc 4.3.3"
63         config BR2_GCC_VERSION_4_4_1
64                 depends on !BR2_avr32 && !BR2_nios2
65                 bool "gcc 4.4.1"
67         config BR2_GCC_VERSION_4_5_0
68                 depends on !BR2_avr32 && !BR2_nios2
69                 bool "gcc 4.5.0 (local trunk checkout)"
71         config BR2_GCC_VERSION_4_5
72                 depends on !BR2_avr32 && !BR2_nios2
73                 select BR2_GCC_IS_SNAP
74                 bool "gcc 4.5 (snapshot)"
75 endchoice
77 config BR2_GCC_IS_SNAP
78         depends on !BR2_avr32
79         bool
80         default n
82 config BR2_GCC_SUPPORTS_SYSROOT
83         bool
84         default n if BR2_GCC_VERSION_3_4_6 || BR2_GCC_VERSION_4_0_4 || BR2_GCC_VERSION_4_1_2
85         default y if !BR2_GCC_VERSION_3_4_6 && !BR2_GCC_VERSION_4_0_4 && !BR2_GCC_VERSION_4_1_2
87 config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
88         bool
89         default n if BR2_GCC_VERSION_3_4_6 || BR2_GCC_VERSION_4_0_4 || BR2_GCC_VERSION_4_1_2 || BR2_GCC_VERSION_4_2_0 || BR2_GCC_VERSION_4_2_1 || BR2_GCC_VERSION_4_2_2 || BR2_GCC_VERSION_4_2_3
90         default y if !BR2_GCC_VERSION_3_4_6 && !BR2_GCC_VERSION_4_0_4 && !BR2_GCC_VERSION_4_1_2 && !BR2_GCC_VERSION_4_2_0 && !BR2_GCC_VERSION_4_2_1 && !BR2_GCC_VERSION_4_2_2 && !BR2_GCC_VERSION_4_2_3
92 config BR2_GCC_SNAP_DATE
93         string "GCC snapshot date"
94         default "20081010"
95         depends on BR2_GCC_IS_SNAP
96         help
97           Enter snapshot date to use for gcc.  Format is:
98           YYYYMMDD
100 config BR2_GCC_VERSION
101         string
102         default "3.4.6"     if BR2_GCC_VERSION_3_4_6
103         default "4.0.4"     if BR2_GCC_VERSION_4_0_4
104         default "4.1.2"     if BR2_GCC_VERSION_4_1_2
105         default "4.2.0"     if BR2_GCC_VERSION_4_2_0
106         default "4.2.1"     if BR2_GCC_VERSION_4_2_1
107         default "4.2.2"     if BR2_GCC_VERSION_4_2_2
108         default "4.2.3"     if BR2_GCC_VERSION_4_2_3
109         default "4.3.0"     if BR2_GCC_VERSION_4_3_0
110         default "4.3.1"     if BR2_GCC_VERSION_4_3_1
111         default "4.3.2"     if BR2_GCC_VERSION_4_3_2
112         default "4.3.3"     if BR2_GCC_VERSION_4_3_3
113         default "4.4.1"     if BR2_GCC_VERSION_4_4_1
114         default "4.5.0"     if BR2_GCC_VERSION_4_5_0
115         default "4.5"       if BR2_GCC_VERSION_4_5
117 config BR2_TOOLCHAIN_SYSROOT
118         bool "Enable toolchain with --sysroot support"
119         depends on BR2_GCC_SUPPORTS_SYSROOT
120         default y
121         help
122           Enables --sysroot=dir for binutils and gcc.
123           Use dir as the logical root directory for headers and libraries.
124           For example, if the compiler would normally search for headers in
125           /usr/include and libraries in /usr/lib, it will instead search
126           dir/usr/include and dir/usr/lib.
128           This does not work with gcc < 4.2.0 (4.1.2 gets
129           ORIGINAL_AS_FOR_TARGET wrong)
131           Say Y here.
133 config BR2_GCC_USE_SJLJ_EXCEPTIONS
134         bool "Enable setjmp/longjmp exceptions?"
135         default n
136         help
137           For some platforms, proper stack unwinding works perfectly,
138           while other platforms must use setjmp/longjmp exceptions for
139           proper stack unwinding during exception handling.  Most people
140           can leave this set to n.
142 choice
143         prompt "GCC decimal floating types"
144         default BR2_GCC_DECNUMBER_no
145         help
146           As an extension, the GNU C Compiler supports decimal float types
147           as defined in the N1176 draft ISO/IEC WDTR24732.
149 config BR2_GCC_DECNUMBER_no
150         bool "no"
151 config BR2_GCC_DECNUMBER_yes
152         bool "yes"
153 config BR2_GCC_DECNUMBER_bid
154         bool "bid"
155 config BR2_GCC_DECNUMBER_dpd
156         bool "dpd"
157 endchoice
159 config BR2_GCC_DECNUMBER
160         string
161         default "no"  if BR2_GCC_DECNUMBER_no
162         default "yes" if BR2_GCC_DECNUMBER_yes
163         default "bid" if BR2_GCC_DECNUMBER_bid
164         default "dpd" if BR2_GCC_DECNUMBER_dpd
166 config BR2_GCC_USE_INTERWORKING
167         bool "Enable interworking support"
168         default n
169         depends on BR2_arm || BR2_armeb
170         depends on !BR2_generic_arm && !BR2_arm610 && !BR2_arm710
171         help
172           Interworking allows Thumb userspace binaries to be linked
173           against the C standard library compiled in ARM mode.
175           This is only possible on Thumb-aware architectures, i.e not
176           Generic ARM, ARM610 or ARM710.
178 config BR2_THUMB_BINARIES
179         bool "Generate Thumb binaries"
180         default n
181         depends on BR2_GCC_USE_INTERWORKING
182         help
183           Compile binaries in Thumb mode.
185 config BR2_EXTRA_GCC_CONFIG_OPTIONS
186         string "Additional cross-gcc configure options"
187         default ""
188         help
189           Any additional gcc configure options you may want to use to
190           build your cross-compiler.
192 config BR2_GCC_CROSS_CXX
193         bool "C++ cross-compiler support"
194         default n
195         help
196           Build a C++ cross-compiler
198 config BR2_GCC_CROSS_GCJ
199         bool "Java cross-compiler support"
200         default n
201         help
202           Build a java cross-compiler
204 config BR2_GCC_CROSS_FORTRAN
205         bool "Fortran cross-compiler support"
206         default n
207         depends on !BR2_avr32
208         help
209           Build a Fortran cross-compiler
211 config BR2_INSTALL_LIBSTDCPP
212         bool "Build/install c++ compiler and libstdc++?"
213         default n
214         # >= 4.2.0 work fine without LARGEFILE
215         select BR2_LARGEFILE if !BR2_GCC_SUPPORTS_SYSROOT
216         select BR2_GCC_CROSS_CXX
217         depends on !BR2_GCC_VERSION_4_3_0 && !BR2_GCC_VERSION_4_3
218         # simply not yet implemented.
219         help
220           Build/install c++ compiler and libstdc++?
222 config BR2_INSTALL_LIBGCJ
223         bool "Build/install Java compiler and runtime?"
224         default n
225         depends on !BR2_avr32 && BR2_INSTALL_LIBSTDCPP
226         select BR2_GCC_CROSS_GCJ
227         help
228           Build/install java compiler and libgcj?
230 config BR2_INSTALL_OBJC
231         bool "Build/install Objective-C compiler and runtime?"
232         default n
233         depends on !BR2_avr32
234         help
235           Build/install Objective-C compiler and runtime?
237 config BR2_INSTALL_FORTRAN
238         bool "Build/install Fortran compiler and runtime?"
239         default n
240         depends on BR2_GCC_CROSS_FORTRAN && !BR2_avr32
241         select BR2_PACKAGE_LIBMPFR
242         help
243           Build/install Fortran compiler and runtime?
244           Note that it is highly recommended NOT to use gfortran
245           from gcc older than 4.2.0
247 config BR2_GCC_SHARED_LIBGCC
248         bool "Build/install a shared libgcc?"
249         default y
250         # uClibc for alpha currently does not support shared libs
251         depends on BR2_ENABLE_SHARED && !BR2_alpha
252         help
253           Build/install a shared libgcc library