add uclibc++ (from packages)
[openwrt/staging/florian.git] / package / uclibc++ / patches / 006-eabi_fix.patch
1 Index: uClibc++-0.2.2/include/typeinfo
2 ===================================================================
3 --- uClibc++-0.2.2.orig/include/typeinfo 2008-02-13 00:37:04.000000000 +0100
4 +++ uClibc++-0.2.2/include/typeinfo 2008-02-13 00:37:34.000000000 +0100
5 @@ -44,6 +44,7 @@
6 class __class_type_info;
7 } // namespace __cxxabiv1
8
9 +#ifndef __GXX_MERGED_TYPEINFO_NAMES
10 #if !__GXX_WEAK__
11 // If weak symbols are not supported, typeinfo names are not merged.
12 #define __GXX_MERGED_TYPEINFO_NAMES 0
13 @@ -51,6 +52,7 @@
14 // On platforms that support weak symbols, typeinfo names are merged.
15 #define __GXX_MERGED_TYPEINFO_NAMES 1
16 #endif
17 +#endif
18
19 namespace std
20 {
21 Index: uClibc++-0.2.2/include/unwind-cxx.h
22 ===================================================================
23 --- uClibc++-0.2.2.orig/include/unwind-cxx.h 2008-02-13 00:38:04.000000000 +0100
24 +++ uClibc++-0.2.2/include/unwind-cxx.h 2008-02-13 00:40:32.000000000 +0100
25 @@ -135,6 +135,7 @@
26
27 // This is the exception class we report -- "GNUCC++\0".
28 const _Unwind_Exception_Class __gxx_exception_class
29 +#ifndef __ARM_EABI_UNWINDER__
30 = ((((((((_Unwind_Exception_Class) 'G'
31 << 8 | (_Unwind_Exception_Class) 'N')
32 << 8 | (_Unwind_Exception_Class) 'U')
33 @@ -143,6 +144,9 @@
34 << 8 | (_Unwind_Exception_Class) '+')
35 << 8 | (_Unwind_Exception_Class) '+')
36 << 8 | (_Unwind_Exception_Class) '\0');
37 +#else
38 += "GNUC++";
39 +#endif
40
41 // GNU C++ personality routine, Version 0.
42 extern "C" _Unwind_Reason_Code __gxx_personality_v0