gmp: don't build fat binaries on Solaris

This commit is contained in:
Ludovic Courtès 2012-07-07 00:59:40 +02:00
parent 4184e580a9
commit 5debe94bb3

View File

@ -13,8 +13,10 @@ stdenv.mkDerivation rec {
buildNativeInputs = [ m4 ];
configureFlags =
# Build a "fat binary", with routines for several sub-architectures (x86).
[ "--enable-fat" ]
# Build a "fat binary", with routines for several sub-architectures
# (x86), except on Solaris where some tests crash with "Memory fault".
# See <http://hydra.nixos.org/build/2760931>, for instance.
(stdenv.lib.optional (!stdenv.isSunOS) "--enable-fat")
++ (if cxx then [ "--enable-cxx" ] else [ "--disable-cxx" ]);
doCheck = true;