https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66765
--- Comment #4 from David Edelsohn <dje at gcc dot gnu.org> --- This is not a target-specific bug. This has nothing to do with the target. This is a bug where the gfortran front-end and collect2-ld do not work together correctly. I don't know how collect2-ld can be expected to know which options to pass to cc1 and which to strip. The gfortran front-end should not insert FE-specific options into the environment utilized by other GCC tools.