libwebp: Disable sse instructions only for x86_gcc2 target arch"

* fix crash webkit-gtk in Transform_SSE2 function
This commit is contained in:
Gerasim Troeglazov
2022-11-30 14:46:52 +10:00
parent 39126a4f9b
commit b06839d3a5

View File

@@ -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
}