--- old/qtcore-5.15.11-r1.ebuild 2024-01-03 16:44:43.191330013 +0100 +++ new/qtcore-5.15.11-r1.ebuild 2024-01-03 16:44:09.287949985 +0100 @@ -14,7 +14,7 @@ DESCRIPTION="Cross-platform application development framework" SLOT=5/${QT5_PV} -IUSE="icu old-kernel" +IUSE="cpu_flags_x86_sse2 icu old-kernel" DEPEND=" dev-libs/double-conversion:= @@ -94,6 +94,11 @@ -no-feature-getentropy # needs Linux 3.17, bug 669994 -no-feature-statx # needs Linux 4.11, bug 672856 ) + # Check for availability of SSE2 and switch off if not available + # Fixes compilation failure for x86 machines without sse2 + use !cpu_flags_x86_sse2 && myconf+=( + -no-feature-sse2 + ) qt5-build_src_configure }