From b06839d3a5aea16cb2e6287da1902e1492b52037 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Wed, 30 Nov 2022 14:46:52 +1000 Subject: [PATCH] libwebp: Disable sse instructions only for x86_gcc2 target arch" * fix crash webkit-gtk in Transform_SSE2 function --- media-libs/libwebp/libwebp-1.2.4.recipe | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/media-libs/libwebp/libwebp-1.2.4.recipe b/media-libs/libwebp/libwebp-1.2.4.recipe index 620af07a7..01a5f0058 100644 --- a/media-libs/libwebp/libwebp-1.2.4.recipe +++ b/media-libs/libwebp/libwebp-1.2.4.recipe @@ -11,7 +11,7 @@ channels." HOMEPAGE="https://developers.google.com/speed/webp" COPYRIGHT="2011-2022 Google Inc." LICENSE="BSD (3-clause)" -REVISION="1" +REVISION="2" SOURCE_URI="http://downloads.webmproject.org/releases/webp/libwebp-$portVersion.tar.gz" CHECKSUM_SHA256="7bf5a8a28cc69bcfa8cb214f2c3095703c6b73ac5fba4d5480c205331d9494df" @@ -99,10 +99,14 @@ defineDebugInfoPackage libwebp$secondaryArchSuffix \ BUILD() { autoreconf -vfi + + if [ "$targetArchitecture" = x86_gcc2 ]; then + SSE_OPTIONS="--disable-sse4.1 --disable-sse2" + fi + runConfigure ./configure \ --enable-libwebpdemux --enable-libwebpmux --enable-libwebpdecoder \ - --enable-libwebpextras --enable-swap-16bit-csp --disable-static \ - --disable-sse4.1 --disable-sse2 + --enable-libwebpextras --enable-swap-16bit-csp --disable-static $SSE_OPTIONS make $jobArgs }