https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68564
--- Comment #2 from Matthias Klose <doko at gcc dot gnu.org> --- Created attachment 36855 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36855&action=edit patch proposed patch; check for the multiarch string before checking for the directory name.