Nginx fails to build on sparc (Architecture mismatch on "casa")

Greetings,

It seems that somewhere around 0.5.35 a change in nginx’s build system
make it fail while building on sparc machines with this error message:

—8<—

gcc -c -Wall -g -O2 -I src/core -I src/event -I src/event/modules -I
src/os/unix -I objs
-o objs/src/core/ngx_slab.o
src/core/ngx_slab.c
/tmp/ccaScft2.s: Assembler messages:
/tmp/ccaScft2.s:1610: Error: Architecture mismatch on “casa”.
/tmp/ccaScft2.s:1610: (Requires v9|v9a|v9b; requested architecture is
sparclite.)
/tmp/ccaScft2.s:1648: Error: Architecture mismatch on “casa”.
/tmp/ccaScft2.s:1648: (Requires v9|v9a|v9b; requested architecture is
sparclite.)

—8<—

There’s a larger build log available¹, and we (the Debian maintainers)
tried some workarounds from an older thread², as well as some of the
latest 0.7 versions to no avail.

GCC 4.1 to 4.3 were used, as stated in Debian bug report #479185³

Does anyone have any pointers about this issue? We’d be pleased to help
testing patches, since we’re looking forward to ship 0.6.32 in Debian’s
upcoming release (Lenny)

Thanks for your time and great work,
Jose

¹
http://buildd.debian.org/fetch.cgi?pkg=nginx;ver=0.5.35-3;arch=sparc;stamp=1209813770
² http://osdir.com/ml/web.nginx.russian/2005-11/msg00195.html
³ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479185#17