add packages_10.03.2 in preparation for the 10.03.2 interim release
[10.03/packages.git] / libs / 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  \r
27  // This is the exception class we report -- "GNUCC++\0".\r
28  const _Unwind_Exception_Class __gxx_exception_class\r
29 +#ifndef __ARM_EABI_UNWINDER__\r
30  = ((((((((_Unwind_Exception_Class) 'G' \r
31          << 8 | (_Unwind_Exception_Class) 'N')\r
32         << 8 | (_Unwind_Exception_Class) 'U')\r
33 @@ -143,6 +144,9 @@
34       << 8 | (_Unwind_Exception_Class) '+')\r
35      << 8 | (_Unwind_Exception_Class) '+')\r
36     << 8 | (_Unwind_Exception_Class) '\0');\r
37 +#else\r
38 += "GNUC++";\r
39 +#endif\r
40  \r
41  // GNU C++ personality routine, Version 0.\r
42  extern "C" _Unwind_Reason_Code __gxx_personality_v0\r