mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Setting gfortran to gcc5. octave was crashing.
Otherwise, using imread() in octave threw: /nix/store/4fvwfzwg58d7167an550xm1k6m7px443-octave-4.0.0/lib/octave/4.0.0/oct/x86_64-unknown-linux-gnu/__magick_read__.oct: failed to load: /nix/store/w7xr6frwffrl135v7vpxdwmnx8l95j5m-gfortran-4.9.3/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /nix/store/qlxkin1arzwbcpiny6amn8747wp8ndg7-graphicsmagick-1.3.21/lib/libGraphicsMagick++.so.11) (this is from 16.03, although I push this to staging)
This commit is contained in:
parent
523f4f2f69
commit
a9d14e3452
1 changed files with 9 additions and 1 deletions
|
@ -4232,7 +4232,7 @@ let
|
||||||
isl = isl_0_14;
|
isl = isl_0_14;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
gfortran = if !stdenv.isDarwin then gfortran49
|
gfortran = if !stdenv.isDarwin then gfortran5
|
||||||
else callPackage ../development/compilers/gcc/gfortran-darwin.nix {
|
else callPackage ../development/compilers/gcc/gfortran-darwin.nix {
|
||||||
inherit (darwin) Libsystem;
|
inherit (darwin) Libsystem;
|
||||||
};
|
};
|
||||||
|
@ -4253,6 +4253,14 @@ let
|
||||||
profiledCompiler = false;
|
profiledCompiler = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gfortran5 = wrapCC (gcc5.cc.override {
|
||||||
|
name = "gfortran";
|
||||||
|
langFortran = true;
|
||||||
|
langCC = false;
|
||||||
|
langC = false;
|
||||||
|
profiledCompiler = false;
|
||||||
|
});
|
||||||
|
|
||||||
gcj = gcj49;
|
gcj = gcj49;
|
||||||
gcj49 = wrapCC (gcc49.cc.override {
|
gcj49 = wrapCC (gcc49.cc.override {
|
||||||
name = "gcj";
|
name = "gcj";
|
||||||
|
|
Loading…
Reference in a new issue