From 77a1b3ba60c930b2378a71451e6652da2f37b53a Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 12 Dec 2019 17:06:18 -0800 Subject: [PATCH] libwebp: Fix compilation with mips16 Signed-off-by: Rosen Penev --- libs/libwebp/Makefile | 3 +-- libs/libwebp/patches/010-mips16.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 libs/libwebp/patches/010-mips16.patch diff --git a/libs/libwebp/Makefile b/libs/libwebp/Makefile index 319d1a06b..a82af951a 100644 --- a/libs/libwebp/Makefile +++ b/libs/libwebp/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libwebp PKG_VERSION:=1.0.3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://storage.googleapis.com/downloads.webmproject.org/releases/webp @@ -14,7 +14,6 @@ PKG_LICENSE_FILES:=COPYING PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 -PKG_USE_MIPS16:=0 include $(INCLUDE_DIR)/package.mk diff --git a/libs/libwebp/patches/010-mips16.patch b/libs/libwebp/patches/010-mips16.patch new file mode 100644 index 000000000..3e69770ac --- /dev/null +++ b/libs/libwebp/patches/010-mips16.patch @@ -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)