https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108261
--- Comment #14 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Iain Sandoe from comment #13) > (In reply to Iain Sandoe from comment #12) > > (In reply to Gaius Mulley from comment #11) > > > > when a module has the same name but a different interface are the > > > symbols distinct (i.e. mangled differently)? > > > > > > no. So, as you say, the ordering of the static link works fine. What if we made them mangle differently? That might solve a bunch of problems in one go.