qt5.base: disable unsupported SIMD instruction sets
If not explicitly disabled, Qt tries to detect support for the various
instruction sets. As a result, binaries built on Hydra may use
instruction sets unsupported by clients.
commit965f330c654553400611aa51d6898a9dd14e40dd
authorThomas Tuegel <ttuegel@gmail.com>
dateMon 20 Jul 2015, 08:46 (11 years ago)
parent17a65c4
pkgs/development/libraries/qt-5/5.4/qtbase.nix+12
@@ -25,6 +25,8 @@
2525
2626with stdenv.lib;
2727
28+let system-x86_64 = elem stdenv.system platforms.x86_64; in
29+
2830stdenv.mkDerivation {
2931
3032 name = "qtbase-${version}";
@@ -125,6 +127,16 @@ stdenv.mkDerivation {
125127 -no-linuxfb
126128 -no-kms
127129
130+ ${optionalString (!system-x86_64) "-no-sse2"}
131+ -no-sse3
132+ -no-ssse3
133+ -no-sse4.1
134+ -no-sse4.2
135+ -no-avx
136+ -no-avx2
137+ -no-mips_dsp
138+ -no-mips_dspr2
139+
128140 -system-zlib
129141 -system-libpng
130142 -system-libjpeg