Trying to bootstrap gcc 4.5 with ppl, so it does not depend on libstdc++ from the boostrap-tools.

svn path=/nixpkgs/branches/stdenv-updates/; revision=22947
This commit is contained in:
Lluís Batlle i Rossell
2010-08-04 12:36:35 +00:00
parent b17d1d7d07
commit e0a11f532b
6 changed files with 60 additions and 13 deletions
+10 -2
View File
@@ -1,4 +1,8 @@
{stdenv, fetchurl, m4, cxx ? true}:
{stdenv, fetchurl, m4, cxx ? true, static ? false}:
let
staticFlags = if static then " --enable-static --disable-shared" else "";
in
stdenv.mkDerivation rec {
name = "gmp-4.3.2";
@@ -14,7 +18,11 @@ stdenv.mkDerivation rec {
# instructions (e.g., SSE2 on i686).
preConfigure = "ln -sf configfsf.guess config.guess";
configureFlags = if cxx then "--enable-cxx" else "--disable-cxx";
configureFlags = (if cxx then "--enable-cxx" else "--disable-cxx") +
staticFlags;
dontDisableStatic = if static then true else false;
doCheck = true;
+9 -2
View File
@@ -1,4 +1,8 @@
{stdenv, fetchurl, m4, cxx ? true}:
{stdenv, fetchurl, m4, cxx ? true, static ? false}:
let
staticFlags = if static then " --enable-static --disable-shared" else "";
in
stdenv.mkDerivation rec {
name = "gmp-5.0.1";
@@ -14,7 +18,10 @@ stdenv.mkDerivation rec {
# instructions (e.g., SSE2 on i686).
preConfigure = "ln -sf configfsf.guess config.guess";
configureFlags = if cxx then "--enable-cxx" else "--disable-cxx";
configureFlags = if cxx then "--enable-cxx" else "--disable-cxx" +
staticFlags;
dontDisableStatic = if static then true else false;
doCheck = true;