gcc-linaro: fix the libgcc spec to default to using the shared libgcc
[openwrt.git] / toolchain / gcc / Config.version
1 config GCC_DEFAULT_VERSION
2         bool
3
4 config GCC_DEFAULT_VERSION_4_3_3_CS
5         select GCC_DEFAULT_VERSION
6         bool
7
8 config GCC_DEFAULT_VERSION_4_3_5
9         select GCC_DEFAULT_VERSION
10         default y if (avr32 || powerpc64 || TARGET_coldfire || TARGET_etrax)
11         bool
12
13 config GCC_DEFAULT_VERSION_4_4_5
14         select GCC_DEFAULT_VERSION
15         default y if (powerpc || ubicom32)
16         bool
17
18 config GCC_DEFAULT_VERSION_LINARO
19         default y if !(GCC_DEFAULT_VERSION)
20         bool
21
22
23 config GCC_VERSION
24         string
25         default "4.3.3+cs"  if GCC_VERSION_4_3_3_CS
26         default "4.3.5"     if GCC_VERSION_4_3_5
27         default "4.4.1+cs"  if GCC_VERSION_4_4_1_CS
28         default "4.4.5"     if GCC_VERSION_4_4_5
29         default "4.5.2"     if GCC_VERSION_4_5_2
30         default "linaro"    if GCC_VERSION_LINARO
31         default "llvm"      if GCC_VERSION_LLVM
32         default "linaro"
33
34 config GCC_VERSION_4_3
35         bool
36         default y       if GCC_VERSION_4_3_3_CS
37         default y       if GCC_VERSION_4_3_5
38
39 config GCC_VERSION_4_4
40         bool
41         default y       if GCC_VERSION_4_4_1_CS
42         default y       if GCC_VERSION_4_4_5
43
44 config GCC_VERSION_4_5
45         bool
46         default y       if GCC_VERSION_4_5_2
47         default y       if GCC_VERSION_LINARO
48
49 if !TOOLCHAINOPTS
50
51         config GCC_VERSION_4_3_3_CS
52                 default y if GCC_DEFAULT_VERSION_4_3_3_CS
53                 bool
54
55         config GCC_VERSION_4_3_5
56                 default y if GCC_DEFAULT_VERSION_4_3_5
57                 bool
58
59         config GCC_VERSION_4_4_5
60                 default y if GCC_DEFAULT_VERSION_4_4_5
61                 bool
62
63         config GCC_VERSION_LINARO
64                 default y if GCC_DEFAULT_VERSION_LINARO
65                 bool
66
67
68 endif