libwebp: Fix compilation with mips16
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
7f669d8d7c
commit
77a1b3ba60
2 changed files with 12 additions and 2 deletions
|
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libwebp
|
PKG_NAME:=libwebp
|
||||||
PKG_VERSION:=1.0.3
|
PKG_VERSION:=1.0.3
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://storage.googleapis.com/downloads.webmproject.org/releases/webp
|
PKG_SOURCE_URL:=https://storage.googleapis.com/downloads.webmproject.org/releases/webp
|
||||||
|
@ -14,7 +14,6 @@ PKG_LICENSE_FILES:=COPYING
|
||||||
|
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
PKG_USE_MIPS16:=0
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
|
11
libs/libwebp/patches/010-mips16.patch
Normal file
11
libs/libwebp/patches/010-mips16.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/src/dsp/dsp.h
|
||||||
|
+++ b/src/dsp/dsp.h
|
||||||
|
@@ -95,7 +95,7 @@ extern "C" {
|
||||||
|
#define WEBP_USE_INTRINSICS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#if defined(__mips__) && !defined(__mips64) && \
|
||||||
|
+#if defined(__mips__) && !defined(__mips16) && !defined(__mips64) && \
|
||||||
|
defined(__mips_isa_rev) && (__mips_isa_rev >= 1) && (__mips_isa_rev < 6)
|
||||||
|
#define WEBP_USE_MIPS32
|
||||||
|
#if (__mips_isa_rev >= 2)
|
Loading…
Reference in a new issue