From 5debe94bb3b0578c2f5fb22250e7d9b3f3abe67c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 7 Jul 2012 00:59:40 +0200 Subject: [PATCH] gmp: don't build fat binaries on Solaris --- pkgs/development/libraries/gmp/5.0.5.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gmp/5.0.5.nix b/pkgs/development/libraries/gmp/5.0.5.nix index 3fb625850515..98ebe5fcc256 100644 --- a/pkgs/development/libraries/gmp/5.0.5.nix +++ b/pkgs/development/libraries/gmp/5.0.5.nix @@ -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 , for instance. + (stdenv.lib.optional (!stdenv.isSunOS) "--enable-fat") ++ (if cxx then [ "--enable-cxx" ] else [ "--disable-cxx" ]); doCheck = true;