summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2016-02-11 02:07:43 +0100
committerDavide Pesavento <pesa@gentoo.org>2016-02-11 02:21:19 +0100
commit4508bd5573404563769986101efd36677be05d48 (patch)
tree6641017c5506e8590b980c353ca2dc5e06e1ec15 /eclass
parentlxde-base/menu-cache: Version bump, shorten DESC (diff)
downloadgentoo-4508bd5573404563769986101efd36677be05d48.tar.gz
gentoo-4508bd5573404563769986101efd36677be05d48.tar.bz2
gentoo-4508bd5573404563769986101efd36677be05d48.zip
qt5-build.eclass: extend the fix for bug 552942 to all arches
Gentoo-Bug: 552942
Diffstat (limited to 'eclass')
-rw-r--r--eclass/qt5-build.eclass20
1 files changed, 10 insertions, 10 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 008685d93fa6..368af3766ae9 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -199,7 +199,7 @@ qt5-build_src_prepare() {
# Don't inject -msse/-mavx/... into CXXFLAGS when detecting
# compiler support for extended instruction sets (bug 552942)
- if use x86 && [[ ${QT5_MINOR_VERSION} -ge 5 ]]; then
+ if [[ ${QT5_MINOR_VERSION} -ge 5 ]]; then
find config.tests/common -name '*.pro' -type f -execdir \
sed -i -e '/else:QMAKE_CXXFLAGS\s*+=/ d' '{}' + || die
fi
@@ -537,15 +537,15 @@ qt5_base_configure() {
#-qml-debug
# extended instruction sets support
- $(is-flagq -mno-sse2 && echo -no-sse2)
- $(is-flagq -mno-sse3 && echo -no-sse3)
- $(is-flagq -mno-ssse3 && echo -no-ssse3)
- $(is-flagq -mno-sse4.1 && echo -no-sse4.1)
- $(is-flagq -mno-sse4.2 && echo -no-sse4.2)
- $(is-flagq -mno-avx && echo -no-avx)
- $(is-flagq -mno-avx2 && echo -no-avx2)
- $(is-flagq -mno-dsp && echo -no-mips_dsp)
- $(is-flagq -mno-dspr2 && echo -no-mips_dspr2)
+ $([[ ${QT5_MINOR_VERSION} -le 4 ]] && is-flagq -mno-sse2 && echo -no-sse2)
+ $([[ ${QT5_MINOR_VERSION} -le 4 ]] && is-flagq -mno-sse3 && echo -no-sse3)
+ $([[ ${QT5_MINOR_VERSION} -le 4 ]] && is-flagq -mno-ssse3 && echo -no-ssse3)
+ $([[ ${QT5_MINOR_VERSION} -le 4 ]] && is-flagq -mno-sse4.1 && echo -no-sse4.1)
+ $([[ ${QT5_MINOR_VERSION} -le 4 ]] && is-flagq -mno-sse4.2 && echo -no-sse4.2)
+ $([[ ${QT5_MINOR_VERSION} -le 4 ]] && is-flagq -mno-avx && echo -no-avx)
+ $([[ ${QT5_MINOR_VERSION} -le 4 ]] && is-flagq -mno-avx2 && echo -no-avx2)
+ $(is-flagq -mno-dsp && echo -no-mips_dsp)
+ $(is-flagq -mno-dspr2 && echo -no-mips_dspr2)
# use pkg-config to detect include and library paths
-pkg-config