fix gcc version selection
authorFelix Fietkau <nbd@openwrt.org>
Thu, 15 Jun 2006 13:44:26 +0000 (13:44 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 15 Jun 2006 13:44:26 +0000 (13:44 +0000)
SVN-Revision: 3947

openwrt/toolchain/gcc/Config.in

index 681f1399acb05b7fa6205ba7b4d25d49f7c93f89..49129073404513c335172e9a5b4be1a13a2d03ac 100644 (file)
@@ -1,5 +1,14 @@
 # Choose gcc version.
 
+if !TOOLCHAINOPTS
+       config GCC_VERSION_3_4_4
+               default y if LINUX_2_4_BRCM
+               
+       config GCC_VERSION_4_0_3
+               default y if LINUX_2_6_ARUBA
+
+endif
+
 choice
        prompt "GCC compiler Version" if TOOLCHAINOPTS
        default GCC_VERSION_4_0_3 if LINUX_2_6_ARUBA
@@ -35,11 +44,11 @@ endchoice
 config GCC_VERSION
        string
        prompt "GCC compiler Version" if (TOOLCHAINOPTS && NULL)
-       default "3.4.4"     if GCC_VERSION_3_4_4 || LINUX_2_4_BRCM
+       default "3.4.4"     if GCC_VERSION_3_4_4
        default "3.4.5"     if GCC_VERSION_3_4_5
        default "3.4.6"     if GCC_VERSION_3_4_6
        default "4.0.2"     if GCC_VERSION_4_0_2
-       default "4.0.3"     if GCC_VERSION_4_0_3 || LINUX_2_6_ARUBA
+       default "4.0.3"     if GCC_VERSION_4_0_3
        default "4.1.0"     if GCC_VERSION_4_1_0
        default "4.1.1"     if GCC_VERSION_4_1_1
        default "3.4.6"