summary refs log tree commit diff
path: root/pkgs/development/libraries/gmp
diff options
context:
space:
mode:
authorJoel Taylor <me@joelt.io>2014-08-17 13:17:13 -0700
committerJoel Taylor <me@joelt.io>2014-09-09 13:54:24 -0700
commit3e8344d334d42824ac3061a919ac15b19a1bf21d (patch)
tree5ecad4218357caec8ddc27d5df150a5734db0281 /pkgs/development/libraries/gmp
parente3fd4499ef296f4769cf4e9e91f1ccfd16325b0f (diff)
downloadnixpkgs-3e8344d334d42824ac3061a919ac15b19a1bf21d.tar
nixpkgs-3e8344d334d42824ac3061a919ac15b19a1bf21d.tar.gz
nixpkgs-3e8344d334d42824ac3061a919ac15b19a1bf21d.tar.bz2
nixpkgs-3e8344d334d42824ac3061a919ac15b19a1bf21d.tar.lz
nixpkgs-3e8344d334d42824ac3061a919ac15b19a1bf21d.tar.xz
nixpkgs-3e8344d334d42824ac3061a919ac15b19a1bf21d.tar.zst
nixpkgs-3e8344d334d42824ac3061a919ac15b19a1bf21d.zip
suitable clang stdenv
Diffstat (limited to 'pkgs/development/libraries/gmp')
-rw-r--r--pkgs/development/libraries/gmp/5.1.x.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gmp/5.1.x.nix b/pkgs/development/libraries/gmp/5.1.x.nix
index 14a6d34d932..5bee2fe4336 100644
--- a/pkgs/development/libraries/gmp/5.1.x.nix
+++ b/pkgs/development/libraries/gmp/5.1.x.nix
@@ -16,10 +16,13 @@ stdenv.mkDerivation (rec {
     # 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.
+    #
+    # no darwin because gmp uses ASM that clang doesn't like
     optional (!stdenv.isSunOS) "--enable-fat"
     ++ (if cxx then [ "--enable-cxx"  ]
                else [ "--disable-cxx" ])
     ++ optional (cxx && stdenv.isDarwin) "CPPFLAGS=-fexceptions"
+    ++ optional stdenv.isDarwin "ABI=64 CC=clang"
     ++ optional stdenv.is64bit "--with-pic"
     ;