diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-08-04 12:36:35 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-08-04 12:36:35 +0000 |
commit | e0a11f532bcc9999cab38a055b0a6f1789f8af77 (patch) | |
tree | 0de8fdd320602981371cab709a0afcd50e131f79 /pkgs/development/libraries/cloog-ppl | |
parent | b17d1d7d07a91a79af432ca0330a879c954b5346 (diff) | |
download | nixpkgs-e0a11f532bcc9999cab38a055b0a6f1789f8af77.tar nixpkgs-e0a11f532bcc9999cab38a055b0a6f1789f8af77.tar.gz nixpkgs-e0a11f532bcc9999cab38a055b0a6f1789f8af77.tar.bz2 nixpkgs-e0a11f532bcc9999cab38a055b0a6f1789f8af77.tar.lz nixpkgs-e0a11f532bcc9999cab38a055b0a6f1789f8af77.tar.xz nixpkgs-e0a11f532bcc9999cab38a055b0a6f1789f8af77.tar.zst nixpkgs-e0a11f532bcc9999cab38a055b0a6f1789f8af77.zip |
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
Diffstat (limited to 'pkgs/development/libraries/cloog-ppl')
-rw-r--r-- | pkgs/development/libraries/cloog-ppl/default.nix | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/development/libraries/cloog-ppl/default.nix b/pkgs/development/libraries/cloog-ppl/default.nix index 5738f76682a..0919afd83c2 100644 --- a/pkgs/development/libraries/cloog-ppl/default.nix +++ b/pkgs/development/libraries/cloog-ppl/default.nix @@ -1,19 +1,28 @@ -{ fetchurl, stdenv, ppl }: +{ fetchurl, stdenv, ppl, static ? false }: + +let + # --with-host-libstdcxx helps when *ppl* is built statically. + # But I will suppose that this is statically built only when ppl is also + # statically built. + staticFlags = assert static -> ppl.dontDisableStatic == true; + if static then " --enable-static --disable-shared --with-host-libstdcxx=-lstdc++" else ""; +in stdenv.mkDerivation rec { - name = "cloog-ppl-0.15.7"; + name = "cloog-ppl-0.15.9"; src = fetchurl { url = "mirror://gcc/infrastructure/${name}.tar.gz"; - sha256 = "0zb96524jk2l78gr5gw0wq3dnvdsmyr2av59v89zv5xcps417q55"; + sha256 = "19a2n75k3d3n8llng25f2g88lpvd4zn0lm073rkndjw6l6yd8m4c"; }; propagatedBuildInputs = [ ppl ]; - configureFlags = "--with-ppl=${ppl}"; + configureFlags = "--with-ppl=${ppl}" + staticFlags; + dontDisableStatic = if static then true else false; crossAttrs = { - configureFlags = "--with-ppl=${ppl.hostDrv}"; + configureFlags = "--with-ppl=${ppl.hostDrv}" + staticFlags; }; doCheck = true; |