[EABI] test for eabi compatibility a little bit better than before
diff --git a/lib/libc/eabi.c b/lib/libc/eabi.c
index 6213d68..9d607f1 100644
--- a/lib/libc/eabi.c
+++ b/lib/libc/eabi.c
@@ -21,10 +21,10 @@
*/
/* some cruft we have to define when using the linux toolchain */
-#if WITH_LINUX_EABI_TOOLCHAIN
-
#include <unwind.h>
+#if defined(__ARM_EABI_UNWINDER__) && __ARM_EABI_UNWINDER__
+
/* Our toolchain has eabi functionality built in, but they're not really used.
* so we stub them out here. */
_Unwind_Reason_Code __aeabi_unwind_cpp_pr0(_Unwind_State state, _Unwind_Control_Block *ucbp, _Unwind_Context *context)
@@ -42,8 +42,10 @@
return _URC_FAILURE;
}
+#endif
+
+/* needed by some piece of EABI */
void raise(void)
{
}
-#endif