gfortran: Attempt to use Apple's GCC on Darwin.

svn path=/nixpkgs/trunk/; revision=33465
This commit is contained in:
Ludovic Courtès 2012-03-29 09:20:15 +00:00
parent 076946d277
commit a2c6280413

View File

@ -1942,7 +1942,10 @@ let
})));
gccApple =
wrapGCC ( (if stdenv.system == "i686-darwin" then import ../development/compilers/gcc/4.2-apple32 else import ../development/compilers/gcc/4.2-apple64) {
wrapGCC (makeOverridable
(if stdenv.system == "i686-darwin"
then import ../development/compilers/gcc/4.2-apple32
else import ../development/compilers/gcc/4.2-apple64) {
inherit fetchurl stdenv noSysDirs;
profiledCompiler = true;
});
@ -1952,7 +1955,13 @@ let
texinfo = texinfo49;
});
gfortran = gfortran46;
gfortran =
if stdenv.isDarwin
then wrapGCC (gccApple.gcc.override {
langF77 = true;
inherit gmp mpfr bison flex;
})
else gfortran46;
gfortran40 = wrapGCC (gcc40.gcc.override {
langFortran = true;