From aae55a4d6d9a6aae6cc94dd372fe0b2234395a6f Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 9 May 2013 20:02:57 +0000 Subject: toolchain/musl: fix libstdc++ build issues Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36590 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../musl/patches-0.9.8/004-wchar_include.patch | 60 ++++++++++++++++++++++ .../musl/patches-0.9.9/004-wchar_include.patch | 60 ++++++++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 toolchain/musl/patches-0.9.8/004-wchar_include.patch create mode 100644 toolchain/musl/patches-0.9.9/004-wchar_include.patch (limited to 'toolchain') diff --git a/toolchain/musl/patches-0.9.8/004-wchar_include.patch b/toolchain/musl/patches-0.9.8/004-wchar_include.patch new file mode 100644 index 000000000..2f36ae580 --- /dev/null +++ b/toolchain/musl/patches-0.9.8/004-wchar_include.patch @@ -0,0 +1,60 @@ +--- a/arch/arm/bits/alltypes.h.sh ++++ b/arch/arm/bits/alltypes.h.sh +@@ -21,6 +21,7 @@ TYPEDEF int ssize_t; + TYPEDEF int ptrdiff_t; + + TYPEDEF __builtin_va_list va_list; ++#define __gnuc_va_list va_list + + #ifndef __cplusplus + TYPEDEF unsigned wchar_t; +--- a/arch/i386/bits/alltypes.h.sh ++++ b/arch/i386/bits/alltypes.h.sh +@@ -25,6 +25,7 @@ TYPEDEF __builtin_va_list va_list; + #else + TYPEDEF struct __va_list * va_list; + #endif ++#define __gnuc_va_list va_list + + #ifndef __cplusplus + #ifdef __WCHAR_TYPE__ +--- a/arch/microblaze/bits/alltypes.h.sh ++++ b/arch/microblaze/bits/alltypes.h.sh +@@ -21,6 +21,7 @@ TYPEDEF int ssize_t; + TYPEDEF int ptrdiff_t; + + TYPEDEF __builtin_va_list va_list; ++#define __gnuc_va_list va_list + + #ifndef __cplusplus + TYPEDEF int wchar_t; +--- a/arch/mips/bits/alltypes.h.sh ++++ b/arch/mips/bits/alltypes.h.sh +@@ -21,6 +21,7 @@ TYPEDEF int ssize_t; + TYPEDEF int ptrdiff_t; + + TYPEDEF __builtin_va_list va_list; ++#define __gnuc_va_list va_list + + #ifndef __cplusplus + TYPEDEF int wchar_t; +--- a/arch/powerpc/bits/alltypes.h.sh ++++ b/arch/powerpc/bits/alltypes.h.sh +@@ -21,6 +21,7 @@ TYPEDEF int ssize_t; + TYPEDEF int ptrdiff_t; + + TYPEDEF __builtin_va_list va_list; ++#define __gnuc_va_list va_list + + #ifndef __cplusplus + TYPEDEF long wchar_t; +--- a/arch/x86_64/bits/alltypes.h.sh ++++ b/arch/x86_64/bits/alltypes.h.sh +@@ -20,6 +20,7 @@ TYPEDEF unsigned long size_t; + TYPEDEF long ssize_t; + TYPEDEF long ptrdiff_t; + TYPEDEF __builtin_va_list va_list; ++#define __gnuc_va_list va_list + + #ifndef __cplusplus + TYPEDEF int wchar_t; diff --git a/toolchain/musl/patches-0.9.9/004-wchar_include.patch b/toolchain/musl/patches-0.9.9/004-wchar_include.patch new file mode 100644 index 000000000..2f36ae580 --- /dev/null +++ b/toolchain/musl/patches-0.9.9/004-wchar_include.patch @@ -0,0 +1,60 @@ +--- a/arch/arm/bits/alltypes.h.sh ++++ b/arch/arm/bits/alltypes.h.sh +@@ -21,6 +21,7 @@ TYPEDEF int ssize_t; + TYPEDEF int ptrdiff_t; + + TYPEDEF __builtin_va_list va_list; ++#define __gnuc_va_list va_list + + #ifndef __cplusplus + TYPEDEF unsigned wchar_t; +--- a/arch/i386/bits/alltypes.h.sh ++++ b/arch/i386/bits/alltypes.h.sh +@@ -25,6 +25,7 @@ TYPEDEF __builtin_va_list va_list; + #else + TYPEDEF struct __va_list * va_list; + #endif ++#define __gnuc_va_list va_list + + #ifndef __cplusplus + #ifdef __WCHAR_TYPE__ +--- a/arch/microblaze/bits/alltypes.h.sh ++++ b/arch/microblaze/bits/alltypes.h.sh +@@ -21,6 +21,7 @@ TYPEDEF int ssize_t; + TYPEDEF int ptrdiff_t; + + TYPEDEF __builtin_va_list va_list; ++#define __gnuc_va_list va_list + + #ifndef __cplusplus + TYPEDEF int wchar_t; +--- a/arch/mips/bits/alltypes.h.sh ++++ b/arch/mips/bits/alltypes.h.sh +@@ -21,6 +21,7 @@ TYPEDEF int ssize_t; + TYPEDEF int ptrdiff_t; + + TYPEDEF __builtin_va_list va_list; ++#define __gnuc_va_list va_list + + #ifndef __cplusplus + TYPEDEF int wchar_t; +--- a/arch/powerpc/bits/alltypes.h.sh ++++ b/arch/powerpc/bits/alltypes.h.sh +@@ -21,6 +21,7 @@ TYPEDEF int ssize_t; + TYPEDEF int ptrdiff_t; + + TYPEDEF __builtin_va_list va_list; ++#define __gnuc_va_list va_list + + #ifndef __cplusplus + TYPEDEF long wchar_t; +--- a/arch/x86_64/bits/alltypes.h.sh ++++ b/arch/x86_64/bits/alltypes.h.sh +@@ -20,6 +20,7 @@ TYPEDEF unsigned long size_t; + TYPEDEF long ssize_t; + TYPEDEF long ptrdiff_t; + TYPEDEF __builtin_va_list va_list; ++#define __gnuc_va_list va_list + + #ifndef __cplusplus + TYPEDEF int wchar_t; -- cgit v1.2.3