summaryrefslogtreecommitdiff
path: root/openwrt/toolchain/gcc/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-06-30 20:59:13 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-06-30 20:59:13 +0000
commit2af64d31a0b259a13447f6139910c573ffcc5a0b (patch)
treecca2c81875b6fa773663e9d0f1536a34e7bc1042 /openwrt/toolchain/gcc/patches
parentdfd4752eae92d54fc54a4ccb5be9bc735d7ef2af (diff)
downloadmtk-20170518-2af64d31a0b259a13447f6139910c573ffcc5a0b.zip
mtk-20170518-2af64d31a0b259a13447f6139910c573ffcc5a0b.tar.gz
mtk-20170518-2af64d31a0b259a13447f6139910c573ffcc5a0b.tar.bz2
add hack for building c++ with gcc 4.1.1
SVN-Revision: 4100
Diffstat (limited to 'openwrt/toolchain/gcc/patches')
-rw-r--r--openwrt/toolchain/gcc/patches/4.1.1/900-c++_fixes.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/openwrt/toolchain/gcc/patches/4.1.1/900-c++_fixes.patch b/openwrt/toolchain/gcc/patches/4.1.1/900-c++_fixes.patch
new file mode 100644
index 0000000..173c6e2
--- /dev/null
+++ b/openwrt/toolchain/gcc/patches/4.1.1/900-c++_fixes.patch
@@ -0,0 +1,37 @@
+diff -ur gcc.old/libstdc++-v3/configure gcc.dev/libstdc++-v3/configure
+--- gcc.old/libstdc++-v3/configure 2006-06-29 23:26:47.000000000 +0200
++++ gcc.dev/libstdc++-v3/configure 2006-06-05 15:48:03.000000000 +0200
+@@ -5745,7 +5745,7 @@
+ enableval="$enable_clocale"
+
+ case "$enableval" in
+- generic|gnu|ieee_1003.1-2001|uclibc|yes|no|auto) ;;
++ generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
+ *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
+ echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
+ { (exit 1); exit 1; }; } ;;
+@@ -6524,23 +6525,6 @@
+ echo "${ECHO_T}$enable_long_long" >&6
+
+
+-
+- # Check whether --enable-wchar_t or --disable-wchar_t was given.
+-if test "${enable_wchar_t+set}" = set; then
+- enableval="$enable_wchar_t"
+-
+- case "$enableval" in
+- yes|no) ;;
+- *) { { echo "$as_me:$LINENO: error: Argument to enable/disable wchar_t must be yes or no" >&5
+-echo "$as_me: error: Argument to enable/disable wchar_t must be yes or no" >&2;}
+- { (exit 1); exit 1; }; } ;;
+- esac
+-
+-else
+- enable_wchar_t=yes
+-fi;
+-
+-
+ # Test wchar.h for mbstate_t, which is needed for char_traits and fpos.
+
+ for ac_header in wchar.h
+