https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78097 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Those libraries should not be using -R. But I doubt they are. I suspect something else is funny here.