From dd35f8739be06beda5a2e2d3f753056cf1fb724a Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Fri, 10 Jul 2009 16:29:58 +0200
Subject: gcc 4.4 mips bug workaround

- code optimization for size still fails loading any shared library
---
 target/lemote/device.mk | 2 +-
 target/rb532/device.mk  | 2 +-
 target/wag54g/device.mk | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/target/lemote/device.mk b/target/lemote/device.mk
index 4b5de5ed2..da4314e84 100644
--- a/target/lemote/device.mk
+++ b/target/lemote/device.mk
@@ -3,5 +3,5 @@ CPU_ARCH:=		mips64el
 KERNEL_VERSION:=	2.6.30
 KERNEL_RELEASE:=	1
 KERNEL_MD5SUM:=		7a80058a6382e5108cdb5554d1609615
-TARGET_OPTIMIZATION:=	-Os -pipe
+TARGET_OPTIMIZATION:=	-O2 -pipe
 TARGET_CFLAGS_ARCH:=    -march=loongson2f -mabi=64
diff --git a/target/rb532/device.mk b/target/rb532/device.mk
index 7b23f2fd6..926e4b9c6 100644
--- a/target/rb532/device.mk
+++ b/target/rb532/device.mk
@@ -3,5 +3,5 @@ CPU_ARCH:=		mipsel
 KERNEL_VERSION:=	2.6.30
 KERNEL_RELEASE:=	1
 KERNEL_MD5SUM:=		7a80058a6382e5108cdb5554d1609615
-TARGET_OPTIMIZATION:=	-Os -pipe
+TARGET_OPTIMIZATION:=	-O2 -pipe
 TARGET_CFLAGS_ARCH:=    -march=mips32
diff --git a/target/wag54g/device.mk b/target/wag54g/device.mk
index 7b23f2fd6..926e4b9c6 100644
--- a/target/wag54g/device.mk
+++ b/target/wag54g/device.mk
@@ -3,5 +3,5 @@ CPU_ARCH:=		mipsel
 KERNEL_VERSION:=	2.6.30
 KERNEL_RELEASE:=	1
 KERNEL_MD5SUM:=		7a80058a6382e5108cdb5554d1609615
-TARGET_OPTIMIZATION:=	-Os -pipe
+TARGET_OPTIMIZATION:=	-O2 -pipe
 TARGET_CFLAGS_ARCH:=    -march=mips32
-- 
cgit v1.2.3