https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109599
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Component|c |other Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I am trying to understand your question. But first I should note ar is not part of GCC but rather in your case comes from the project called GNU binutils. Are you asking how to have ar understand object files which are named the same name but have different pathes? Well archive files don't normally support that. See the AR manual page and the option P too. BIG WARNING, you need to always use the P option when modifing those archives too. Or you asking how to chose at compile time the files between the different subdirectories? That is not related to AR and needs more thinking on your part really. Anyways this is not the right location to ask questions about ar, try emailing binut...@sourceware.org instead.