diff options
author | Ludovic Courtès <ludo@gnu.org> | 2011-01-22 20:26:50 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-01-22 20:26:50 +0000 |
commit | 3593d48524ed7d8bafe9cc6500a679362e4cee51 (patch) | |
tree | aa1a4aa640dd428b3a391ae9996838fd64b8ff63 /pkgs/development/libraries/gmp | |
parent | 24c9b1f3b93978d09216bb40590ba63058ba8b42 (diff) |
GMP: Further attempt to fix `x86_64-darwin' builds.
svn path=/nixpkgs/trunk/; revision=25668
Diffstat (limited to 'pkgs/development/libraries/gmp')
-rw-r--r-- | pkgs/development/libraries/gmp/4.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/libraries/gmp/4.nix b/pkgs/development/libraries/gmp/4.nix index c5a59045bbe99..9fd5aeff6369a 100644 --- a/pkgs/development/libraries/gmp/4.nix +++ b/pkgs/development/libraries/gmp/4.nix @@ -16,7 +16,14 @@ stdenv.mkDerivation rec { # Prevent the build system from using sub-architecture-specific # instructions (e.g., SSE2 on i686). - preConfigure = "ln -sf configfsf.guess config.guess"; + # + # This is not a problem for Apple machines, which are all alike. In + # addition, `configfsf.guess' would return `i386-apple-darwin10.2.0' on + # `x86_64-darwin', leading to a 32-bit ABI build, which is undesirable. + preConfigure = + if !stdenv.isDarwin + then "ln -sf configfsf.guess config.guess" + else ''echo "Darwin host is `./config.guess`."''; configureFlags = (if cxx then "--enable-cxx" else "--disable-cxx") + staticFlags; |