https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91273
--- Comment #1 from Jan Hubicka <hubicka at gcc dot gnu.org> --- This seems to work for me with current trunk hubicka@lomikamen-jh:/aux/hubicka/trunk4/build2/gcc$ cat ~/1.ii extern "C" { struct { } ltregul_; } hubicka@lomikamen-jh:/aux/hubicka/trunk4/build2/gcc$ cat ~/2.F common /ltregul/ zeroeps end hubicka@lomikamen-jh:/aux/hubicka/trunk4/build2/gcc$ ./gfortran -B ./ ~/1.ii ~/2.F -flto -O2 -B ../x86_64-pc-linux-gnu/libgfortran/ hubicka@lomikamen-jh:/aux/hubicka/trunk4/build2/gcc$ ./xg++ -B ./ ~/1.ii ~/2.F -flto -O2 -B ../x86_64-pc-linux-gnu/libgfortran/ /usr/local/x86_64-pc-linux-gnu/bin/ld: /tmp/cck5WNC7.ltrans0.ltrans.o: in function `main': <artificial>:(.text.startup+0x5): undefined reference to `_gfortran_set_args' /usr/local/x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text.startup+0x14): undefined reference to `_gfortran_set_options' collect2: error: ld returned 1 exit status