SRC_URI = "http://www.codesourcery.com/public/gnu_toolchain/arm-none-eabi/arm-2005q3-2-arm-none-eabi.src.tar.bz2 \
file://gcc_optab_arm.patch;patch=1 \
- file://gcc-3.4.4-eabi-bigendian.patch;patch=1"
+ file://gcc-3.4.4-eabi-bigendian.patch;patch=1 \
+ file://libstdc++_configure.patch;patch=1 \
+ file://demangle.patch;patch=1 \
+ "
S = "${WORKDIR}/gcc-2005q3"
--- /dev/null
+Index: gcc-2005q3/libiberty/cp-demangle.c
+===================================================================
+--- gcc-2005q3.orig/libiberty/cp-demangle.c 2009-10-20 00:40:24.353743504 +0200
++++ gcc-2005q3/libiberty/cp-demangle.c 2009-10-20 00:40:49.418955689 +0200
+@@ -1404,7 +1404,7 @@
+
+ #define NL(s) s, (sizeof s) - 1
+
+-CP_STATIC_IF_GLIBCPP_V3
++/*CP_STATIC_IF_GLIBCPP_V3*/
+ const struct demangle_operator_info cplus_demangle_operators[] =
+ {
+ { "aN", NL ("&="), 2 },
+@@ -1744,7 +1744,7 @@
+ ::= u <source-name>
+ */
+
+-CP_STATIC_IF_GLIBCPP_V3
++/*CP_STATIC_IF_GLIBCPP_V3*/
+ const struct demangle_builtin_type_info
+ cplus_demangle_builtin_types[D_BUILTIN_TYPE_COUNT] =
+ {
--- /dev/null
+Index: gcc-2005q3/libstdc++-v3/configure
+===================================================================
+--- gcc-2005q3.orig/libstdc++-v3/configure 2009-10-20 00:20:18.975521386 +0200
++++ gcc-2005q3/libstdc++-v3/configure 2009-10-20 00:20:48.563010077 +0200
+@@ -93680,7 +93680,8 @@
+ case "$target" in
+ *arm*-symbianelf)
+ LIBSUPCXX_PRONLY=yes;;
+- *);;
++ *)
++ LIBSUPCXX_PRONLY=no;;
+ esac
+
+