The following patch seems to help. At least the test suite passes on
both armel and armhf.

But I honestly don't know why...

--- mongrel2-1.9.1.orig/src/task/asm.S
+++ mongrel2-1.9.1/src/task/asm.S
@@ -34,7 +34,7 @@
 #endif
 #endif
 
-#if defined(__linux__) && defined(__arm__)
+#if defined(__linux__) && defined(__arm__) && defined(__SOFTFP__)
 #define NEEDARMCONTEXT 1
 #define SET setmcontext
 #define GET getmcontext
--- mongrel2-1.9.1.orig/src/task/context.c
+++ mongrel2-1.9.1/src/task/context.c
@@ -30,7 +30,7 @@
 #endif
 #endif
 
-#if defined(__linux__) && defined(__arm__)
+#if defined(__linux__) && defined(__arm__) && defined(__SOFTFP__)
 #define NEEDSWAPCONTEXT
 #define NEEDARMMAKECONTEXT
 #endif
--- mongrel2-1.9.1.orig/src/task/taskimpl.h
+++ mongrel2-1.9.1/src/task/taskimpl.h
@@ -104,7 +104,7 @@ extern pid_t rfork_thread(int, void*, in
 #    include "sparc-ucontext.h"
 #endif
 
-#if defined(__arm__)
+#if defined(__arm__) && defined(__SOFTFP__)
 int getmcontext(mcontext_t*);
 void setmcontext(const mcontext_t*);
 #define    setcontext(u)    setmcontext((void *)&((u)->uc_mcontext.arm_r0))


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to