fix gcc menuconfig defaults
[openwrt-10.03/.git] / toolchain / gcc / Config.in
1 # Choose gcc version.
2 # WARNING -- 2.95 currently only builds for i386, arm, mips*, and powerpc.
3 # WARNING -- 2.95 does not currently build natively for the target.
4
5 if CONFIG_DEVEL
6         comment "Gcc Options"
7 endif
8
9
10 config BR2_GCC_3_4
11         bool
12         default n
13         depends BR2_GCC_VERSION_3_4_4 || BR2_GCC_VERSION_3_4_5 || BR2_GCC_VERSION_3_4_6 || BR2_GCC_VERSION_4_0_2 || BR2_GCC_VERSION_4_1_0
14
15 config BR2_GCC_VERSION_3_4_4
16         bool
17         default y if BR2_LINUX_2_4_BRCM
18
19 config BR2_GCC_VERSION_4_0_2
20         bool
21         default y if BR2_LINUX_2_6_ARUBA
22
23 choice
24         prompt "GCC compiler Version" if CONFIG_DEVEL
25         default BR2_GCC_VERSION_4_0_2 if BR2_LINUX_2_6_ARUBA
26         default BR2_GCC_VERSION_3_4_4 if BR2_LINUX_2_4_BRCM
27         default BR2_GCC_VERSION_3_4_6
28         help
29           Select the version of gcc you wish to use.
30
31         config BR2_GCC_VERSION_3_4_4
32                 bool "gcc 3.4.4"
33                 select BR2_GCC_3_4
34
35         config BR2_GCC_VERSION_3_4_5
36                 bool "gcc 3.4.5"
37                 select BR2_GCC_3_4
38
39         config BR2_GCC_VERSION_3_4_6
40                 bool "gcc 3.4.6"
41                 select BR2_GCC_3_4
42
43         config BR2_GCC_VERSION_4_0_2
44                 bool "gcc 4.0.2"
45                 select BR2_GCC_3_4
46                 select BR2_PACKAGE_LIBGCC
47                 
48         config BR2_GCC_VERSION_4_1_0
49                 bool "gcc 4.1.0"
50                 select BR2_GCC_3_4
51                 select BR2_PACKAGE_LIBGCC
52
53 endchoice
54
55 config BR2_GCC_VERSION
56         string
57         default "3.4.4"     if BR2_GCC_VERSION_3_4_4
58         default "3.4.5"     if BR2_GCC_VERSION_3_4_5
59         default "3.4.6"     if BR2_GCC_VERSION_3_4_6
60         default "4.0.2"     if BR2_GCC_VERSION_4_0_2
61         default "4.1.0"     if BR2_GCC_VERSION_4_1_0
62         default "3.4.6"
63
64
65 config BR2_GCC_USE_SJLJ_EXCEPTIONS
66         string
67 #       default "--enable-sjlj-exceptions"
68         default ""
69         help
70             Currently the unwind stuff seems to work for staticly linked apps
71             but not dynamic.  So use setjmp/longjmp exceptions by default.
72
73 config BR2_EXTRA_GCC_CONFIG_OPTIONS
74         string
75         prompt "Additional gcc options" if CONFIG_DEVEL
76         default ""
77         help
78             Any additional gcc options you may want to include....
79
80 config BR2_INSTALL_LIBSTDCPP
81         bool
82         prompt "Build/install c++ compiler and libstdc++?" if CONFIG_DEVEL
83         default y
84         help
85             Build/install c++ compiler and libstdc++?
86