diff options
author | Ludovic Courtès <ludo@gnu.org> | 2011-05-03 22:38:52 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-05-03 22:38:52 +0000 |
commit | d00b3037661eee1662100139dc301a0680fb198e (patch) | |
tree | a08b341238d9198c8286960adaafe0ed9e251d6f /pkgs/development/libraries/gmp/default.nix | |
parent | 8aa7d7b1ac1cd47bd8d649488ccea6057e3f574c (diff) | |
download | nixpkgs-d00b3037661eee1662100139dc301a0680fb198e.tar nixpkgs-d00b3037661eee1662100139dc301a0680fb198e.tar.gz nixpkgs-d00b3037661eee1662100139dc301a0680fb198e.tar.bz2 nixpkgs-d00b3037661eee1662100139dc301a0680fb198e.tar.lz nixpkgs-d00b3037661eee1662100139dc301a0680fb198e.tar.xz nixpkgs-d00b3037661eee1662100139dc301a0680fb198e.tar.zst nixpkgs-d00b3037661eee1662100139dc301a0680fb198e.zip |
GMP: Use `--enable-fat' instead of tinkering with `config.guess'.
svn path=/nixpkgs/branches/stdenv-updates/; revision=27126
Diffstat (limited to 'pkgs/development/libraries/gmp/default.nix')
-rw-r--r-- | pkgs/development/libraries/gmp/default.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/development/libraries/gmp/default.nix b/pkgs/development/libraries/gmp/default.nix index 338debaa81e..1b079c05158 100644 --- a/pkgs/development/libraries/gmp/default.nix +++ b/pkgs/development/libraries/gmp/default.nix @@ -1,7 +1,8 @@ {stdenv, fetchurl, m4, cxx ? true, static ? false}: let - staticFlags = if static then " --enable-static --disable-shared" else ""; + staticFlags = stdenv.lib.optionals static + [ "--enable-static" "--disable-shared" ]; in stdenv.mkDerivation rec { @@ -14,12 +15,12 @@ stdenv.mkDerivation rec { buildNativeInputs = [m4]; - # Prevent the build system from using sub-architecture-specific - # instructions (e.g., SSE2 on i686). - preConfigure = "ln -sf configfsf.guess config.guess"; + configureFlags = + # Build a "fat binary", with routines for several sub-architectures (x86). + [ "--enable-fat" ] - configureFlags = if cxx then "--enable-cxx" else "--disable-cxx" + - staticFlags; + ++ (if cxx then [ "--enable-cxx" ] else [ "--disable-cxx" ]) + ++ staticFlags; dontDisableStatic = if static then true else false; |