* Streamline the stdenv bootstrap and resulting closure by removing

some redundant builds (e.g., GMP was built three times).
* Updated GMP to 5.0.2.
* Updated PPL to 0.11.2.
* Remove ad hoc flags to build GCC's dependencies statically.
  Instead, use the ‘makeStaticLibraries’ stdenv adapter.
* Build GMP with C++ support by default.

svn path=/nixpkgs/branches/stdenv-updates/; revision=30891
This commit is contained in:
Eelco Dolstra
2011-12-14 14:31:56 +00:00
parent 9eb4c4ddef
commit cfde88976b
13 changed files with 94 additions and 198 deletions

View File

@@ -1,28 +1,19 @@
{stdenv, fetchurl, m4, cxx ? true, static ? false}:
let
staticFlags = stdenv.lib.optionals static
[ "--enable-static" "--disable-shared" ];
in
{ stdenv, fetchurl, m4, cxx ? true }:
stdenv.mkDerivation rec {
name = "gmp-5.0.1";
name = "gmp-5.0.2";
src = fetchurl {
url = "mirror://gnu/gmp/${name}.tar.bz2";
sha256 = "1yrr14l6vvhm1g27y8nb3c75j0i4ii4k1gw7ik08safk3zq119m2";
sha256 = "0a2ch2kpbzrsf3c1pfc6sph87hk2xmwa6np3sn2rzsflzmvdphnv";
};
buildNativeInputs = [m4];
buildNativeInputs = [ m4 ];
configureFlags =
# Build a "fat binary", with routines for several sub-architectures (x86).
[ "--enable-fat" ]
++ (if cxx then [ "--enable-cxx" ] else [ "--disable-cxx" ])
++ staticFlags;
dontDisableStatic = if static then true else false;
++ (if cxx then [ "--enable-cxx" ] else [ "--disable-cxx" ]);
doCheck = true;