Adding -mips32r2 is not a good idea,
since all Debian on mips* is built for mips2.

Instead, i think that better solution would be to
define  WEBP_USE_MIPS32 only in mips32 case.
(src/dsp/dsp.h)

The patch that contains needed changes is attached.

With this patch I was able to successfully build libwebp for both mips and 
mipsel.


Could you please consider including this patch?
--- libwebp-0.4.1.orig/src/dsp/dsp.h	2014-07-29 00:22:32.000000000 +0000
+++ libwebp-0.4.1/src/dsp/dsp.h	2014-08-04 12:10:23.000000000 +0000
@@ -60,7 +60,7 @@
 #define WEBP_USE_NEON
 #endif
 
-#if defined(__mips__)
+#if defined(__mips__) && defined(_MIPS_ARCH_MIPS32)
 #define WEBP_USE_MIPS32
 #endif
 

Reply via email to