Using flang via setting the FC environment variable is reported not to be working at scipy/scipy#10125. A -lgfortran flag is added, when gfortran isn't installed on the system. This is due to the config stage not knowing about FC and always picking up GnuFortranCompiler if --fcompiler is not used.