nixpkgs/pkgs/development/compilers/gcc
Adam Joseph ea61be413c gcc: set GFORTRAN_FOR_TARGET on cross-built native compilers
For a cross-built native compiler, i.e. build!=(host==target), the
bundled libgfortran needs a gfortran which can run on the
buildPlatform and emit code for the targetPlatform.  The compiler
which is built alongside gfortran in this configuration doesn't meet
that need: it runs on the hostPlatform.

This commit passes the necessary compiler via `GFORTRAN_FOR_TARGET`,
using `pkgsBuildTarget.gfortran`.
2023-09-21 09:24:56 +03:00
..
common gcc: set GFORTRAN_FOR_TARGET on cross-built native compilers 2023-09-21 09:24:56 +03:00
patches gcc.patches: For gcc49 apply libsanitizer-no-cyclades-9 patch later 2023-09-02 21:49:08 +03:00
default.nix gcc: set GFORTRAN_FOR_TARGET on cross-built native compilers 2023-09-21 09:24:56 +03:00