58f91ddbab8eaeaede3559e40d228937187355f3
[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 config BR2_GCC_VERSION_3_4_4
10         bool
11         default y if BR2_LINUX_2_4_BRCM
12
13 config BR2_GCC_VERSION_4_0_2
14         bool
15         default y if BR2_LINUX_2_6_ARUBA
16
17 choice
18         prompt "GCC compiler Version" if CONFIG_DEVEL
19         default BR2_GCC_VERSION_4_0_2 if BR2_LINUX_2_6_ARUBA
20         default BR2_GCC_VERSION_3_4_4 if BR2_LINUX_2_4_BRCM
21         default BR2_GCC_VERSION_3_4_6
22         help
23           Select the version of gcc you wish to use.
24
25         config BR2_GCC_VERSION_3_4_4
26                 bool "gcc 3.4.4"
27
28         config BR2_GCC_VERSION_3_4_5
29                 bool "gcc 3.4.5"
30
31         config BR2_GCC_VERSION_3_4_6
32                 bool "gcc 3.4.6"
33
34         config BR2_GCC_VERSION_4_0_2
35                 bool "gcc 4.0.2"
36                 select BR2_PACKAGE_LIBGCC
37                 
38         config BR2_GCC_VERSION_4_1_0
39                 bool "gcc 4.1.0"
40                 select BR2_PACKAGE_LIBGCC
41
42 endchoice
43
44 config BR2_GCC_VERSION
45         string
46         default "3.4.4"     if BR2_GCC_VERSION_3_4_4
47         default "3.4.5"     if BR2_GCC_VERSION_3_4_5
48         default "3.4.6"     if BR2_GCC_VERSION_3_4_6
49         default "4.0.2"     if BR2_GCC_VERSION_4_0_2
50         default "4.1.0"     if BR2_GCC_VERSION_4_1_0
51         default "3.4.6"
52
53
54 config BR2_GCC_USE_SJLJ_EXCEPTIONS
55         string
56 #       default "--enable-sjlj-exceptions"
57         default ""
58         help
59             Currently the unwind stuff seems to work for staticly linked apps
60             but not dynamic.  So use setjmp/longjmp exceptions by default.
61
62 config BR2_EXTRA_GCC_CONFIG_OPTIONS
63         string
64         prompt "Additional gcc options" if CONFIG_DEVEL
65         default ""
66         help
67             Any additional gcc options you may want to include....
68
69 config BR2_INSTALL_LIBSTDCPP
70         bool
71         prompt "Build/install c++ compiler and libstdc++?" if CONFIG_DEVEL
72         default y
73         help
74             Build/install c++ compiler and libstdc++?
75