--- qt4-build.eclass?revision=1.103 2011-12-12 14:55:36.097694963 +0400 +++ qt4-build.eclass 2011-12-12 14:52:03.000000000 +0400 @@ -18,7 +18,7 @@ SRC_URI="http://get.qt.nokia.com/qt/source/${MY_P}.tar.gz" LICENSE="|| ( LGPL-2.1 GPL-3 )" -IUSE="aqua debug pch" +IUSE="aqua debug pch sse sse2 sse3 ssse3 sse4_1 sse4_2" [[ ${CATEGORY}/${PN} != x11-libs/qt-xmlpatterns ]] && [[ ${CATEGORY}/${PN} != x11-themes/qgtkstyle ]] && @@ -367,6 +367,11 @@ myconf+=" $(pkg-config --cflags freetype2)" fi + local flag + for flag in sse sse2 sse3 ssse3 sse4_1 sse4_2 ; do + use "${flag}" || myconf+=" -no-${flag/_/.}" + done + # Disable SSE4.x, since auto-detection is currently broken # Upstream bug http://bugreports.qt.nokia.com/browse/QTBUG-13623 [[ ${PV} == "4.7.1" ]] && myconf+=" -no-sse4.1 -no-sse4.2"