fix cflags
authorMike Baker <mbm@openwrt.org>
Fri, 13 Jan 2006 00:31:04 +0000 (00:31 +0000)
committerMike Baker <mbm@openwrt.org>
Fri, 13 Jan 2006 00:31:04 +0000 (00:31 +0000)
SVN-Revision: 2944

openwrt/toolchain/Config.in
openwrt/toolchain/Config.in.devel

index 67a331f..080d877 100644 (file)
@@ -24,5 +24,6 @@ config BR2_SOFT_FLOAT
 
 config BR2_TARGET_OPTIMIZATION
        string
-       default "-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time"
-
+       default "-Os -pipe -march=i486 -funit-at-a-time" if BR2_i386
+       default "-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" if BR2_mipsel || BR2_mips
+       default "-Os -pipe -funit-at-a-time"
index 2f2bbc4..4144c50 100644 (file)
@@ -38,7 +38,8 @@ config BR2_SOFT_FLOAT
 config BR2_TARGET_OPTIMIZATION
        string "Target Optimizations"
        default "-Os -pipe -march=i486 -funit-at-a-time" if BR2_i386
-       default "-Os -pipe -mips32 -mtune=mips32  -funit-at-a-time" if BR2_mipsel
+       default "-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" if BR2_mipsel || BR2_mips
+       default "-Os -pipe -funit-at-a-time"
        help
          Optimizations to use when building for the target host.