summaryrefslogtreecommitdiff
path: root/misc/buildroot/toolchain/gcc/4.2.4/930-nuttx-nolibc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'misc/buildroot/toolchain/gcc/4.2.4/930-nuttx-nolibc.patch')
-rw-r--r--misc/buildroot/toolchain/gcc/4.2.4/930-nuttx-nolibc.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/misc/buildroot/toolchain/gcc/4.2.4/930-nuttx-nolibc.patch b/misc/buildroot/toolchain/gcc/4.2.4/930-nuttx-nolibc.patch
new file mode 100644
index 000000000..4503ed619
--- /dev/null
+++ b/misc/buildroot/toolchain/gcc/4.2.4/930-nuttx-nolibc.patch
@@ -0,0 +1,30 @@
+At present, libstdc++ will not build. My understanding is that it needs to have
+the NuttX libc characterized in crossconfig.m4. This is a first attempt to do that --
+unfortunately, it still does not work.
+
+diff -u gcc-4.2.4/libstdc++-v3/configure.orig gcc-4.2.4/libstdc++-v3/configure
+--- gcc-4.2.4/libstdc++-v3/configure.orig 2009-01-05 17:52:11.000000000 -0600
++++ gcc-4.2.4/libstdc++-v3/configure 2009-01-05 17:52:43.000000000 -0600
+@@ -108515,9 +108515,7 @@
+
+ ;;
+ *)
+- { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
+-echo "$as_me: error: No support for this host/target combination." >&2;}
+- { (exit 1); exit 1; }; }
++ # Assume bare hardware
+ ;;
+ esac
+
+diff -u gcc-4.2.4/libstdc++-v3/crossconfig.m4.orig gcc-4.2.4/libstdc++-v3/crossconfig.m4
+--- gcc-4.2.4/libstdc++-v3/crossconfig.m4.orig 2009-01-05 17:51:07.000000000 -0600
++++ gcc-4.2.4/libstdc++-v3/crossconfig.m4 2009-01-05 17:52:02.000000000 -0600
+@@ -412,7 +412,7 @@
+ AC_DEFINE(HAVE_TANHL)
+ ;;
+ *)
+- AC_MSG_ERROR([No support for this host/target combination.])
++ # Assume bare hardware
+ ;;
+ esac
+ ])