From 2861645cace459bc87130be331fde4100f15def3 Mon Sep 17 00:00:00 2001 From: Tasos Sahanidis Date: Wed, 10 Jul 2024 06:34:50 +0300 Subject: extra/qt6-base: Fix non SSE2 builds --- extra/qt6-base/PKGBUILD | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'extra/qt6-base') diff --git a/extra/qt6-base/PKGBUILD b/extra/qt6-base/PKGBUILD index 5ce557f9..131ce0c0 100644 --- a/extra/qt6-base/PKGBUILD +++ b/extra/qt6-base/PKGBUILD @@ -9,3 +9,11 @@ if [ "$CARCH" = 'i486' ]; then ' )" fi + +# Fix SSE2 issues on i486/i686 +if [ "$CARCH" = 'i486' -o "$CARCH" = 'i686' ]; then + eval "$( + declare -f prepare | \ + sed '$ d' | sed '$ a sed -i s/defined\\(__FLT16_MAX__\\)/0/ src/corelib/global/qtypes.h; }' + )" +fi -- cgit v1.2.3-70-g09d2