gfortran: fix wrapper host/target offset for cross

Use correct host/target offset for gfortran wrapper, since stdenv
has an implicit offset of -1.

Fixes e.g. pkgsCross.aarch64-multiplatform.buildPackages.gfortran
This commit is contained in:
Ryan Burns 2022-05-03 17:07:42 -07:00
parent 585c1f2b8e
commit 338ed797fe

View File

@ -12694,7 +12694,7 @@ with pkgs;
gcc_latest = gcc11;
# Use the same GCC version as the one from stdenv by default
gfortran = wrapCC (gccStdenv.cc.cc.override {
gfortran = wrapCC (gcc.cc.override {
name = "gfortran";
langFortran = true;
langCC = false;