Shared libgfortran missing from gfortran.cc.lib

I am trying to build a mixed-language project that links some Fortran components.

  • nix-shell -p gfortran gives me the compiler, but not the Fortran runtime libraries.
  • nix-shell -p gfortran.cc gives me the compiler and the runtime libraries. The latter only in the static version.

Is there a way to get the shared version? Thanks in advance!

Maybe it is too late. however recently I meet similar problem. According to this file, you can replace gfortran.cc with

 (stdenv.lib.getLib gfortran.cc)
2 Likes