https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91287
Kewen Lin <linkw at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |linkw at gcc dot gnu.org --- Comment #26 from Kewen Lin <linkw at gcc dot gnu.org> --- > The odd thing is that if you omit libfoo1.so then it will consider > libfoo.a later but not when it can resolve from libfoo1.so. > > That's a bit inconsistent but arguably the bug is with GCCs > symbol table creation of the LTO IR. Do we have option to dump the actual final linking command to link all ltrans objects? I can only see the command to generate ltrans object with as. Is it possible a library order issue in final linking?