* Fix GHC. The bootstrap binaries depend on libgmp.so.3, which is
provided by GMP 4 but not GMP 5. svn path=/nixpkgs/branches/stdenv-updates/; revision=31639
This commit is contained in:
parent
e6d6520a56
commit
03fb0e59ef
@ -1,10 +1,6 @@
|
||||
{stdenv, fetchurl, m4, cxx ? true, static ? false}:
|
||||
{ stdenv, fetchurl, m4, cxx ? true }:
|
||||
|
||||
let
|
||||
staticFlags = if static then " --enable-static --disable-shared" else "";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation (rec {
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gmp-4.3.2";
|
||||
|
||||
src = fetchurl {
|
||||
@ -12,7 +8,7 @@ stdenv.mkDerivation (rec {
|
||||
sha256 = "0x8prpqi9amfcmi7r4zrza609ai9529pjaq0h4aw51i867064qck";
|
||||
};
|
||||
|
||||
buildNativeInputs = [m4];
|
||||
buildNativeInputs = [ m4 ];
|
||||
|
||||
# Prevent the build system from using sub-architecture-specific
|
||||
# instructions (e.g., SSE2 on i686).
|
||||
@ -25,10 +21,7 @@ stdenv.mkDerivation (rec {
|
||||
then "ln -sf configfsf.guess config.guess"
|
||||
else ''echo "Darwin host is `./config.guess`."'';
|
||||
|
||||
configureFlags = (if cxx then "--enable-cxx" else "--disable-cxx") +
|
||||
staticFlags;
|
||||
|
||||
dontDisableStatic = if static then true else false;
|
||||
configureFlags = if cxx then "--enable-cxx" else "--disable-cxx";
|
||||
|
||||
doCheck = true;
|
||||
|
||||
@ -64,10 +57,3 @@ stdenv.mkDerivation (rec {
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
# Don't run the native `strip' when cross-compiling.
|
||||
(if (stdenv ? cross)
|
||||
then { dontStrip = true; }
|
||||
else { }))
|
||||
|
@ -2119,20 +2119,20 @@ let
|
||||
});
|
||||
*/
|
||||
|
||||
ghc6101Binary = lowPrio (import ../development/compilers/ghc/6.10.1-binary.nix {
|
||||
inherit fetchurl stdenv perl ncurses gmp libedit;
|
||||
ghc6101Binary = lowPrio (callPackage ../development/compilers/ghc/6.10.1-binary.nix {
|
||||
gmp = gmp4;
|
||||
});
|
||||
|
||||
ghc6102Binary = lowPrio (import ../development/compilers/ghc/6.10.2-binary.nix {
|
||||
inherit fetchurl stdenv perl ncurses gmp libedit;
|
||||
ghc6102Binary = lowPrio (callPackage ../development/compilers/ghc/6.10.2-binary.nix {
|
||||
gmp = gmp4;
|
||||
});
|
||||
|
||||
ghc6121Binary = lowPrio (import ../development/compilers/ghc/6.12.1-binary.nix {
|
||||
inherit fetchurl stdenv perl ncurses gmp;
|
||||
ghc6121Binary = lowPrio (callPackage ../development/compilers/ghc/6.12.1-binary.nix {
|
||||
gmp = gmp4;
|
||||
});
|
||||
|
||||
ghc704Binary = lowPrio (import ../development/compilers/ghc/7.0.4-binary.nix {
|
||||
inherit fetchurl stdenv perl ncurses gmp;
|
||||
ghc704Binary = lowPrio (callPackage ../development/compilers/ghc/7.0.4-binary.nix {
|
||||
gmp = gmp4;
|
||||
});
|
||||
|
||||
# For several compiler versions, we export a large set of Haskell-related
|
||||
@ -3585,6 +3585,9 @@ let
|
||||
|
||||
gmpxx = appendToName "with-cxx" (gmp.override { cxx = true; });
|
||||
|
||||
# The GHC bootstrap binaries link against libgmp.so.3, which is in GMP 4.x.
|
||||
gmp4 = callPackage ../development/libraries/gmp/4.nix { };
|
||||
|
||||
gobjectIntrospection = callPackage ../development/libraries/gobject-introspection { };
|
||||
|
||||
goffice = callPackage ../development/libraries/goffice {
|
||||
|
Loading…
Reference in New Issue
Block a user