https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108092
Bug ID: 108092 Summary: libstdc++ and all other gcc libraries installed incorrectly installed $PREFIX/lib32 for crossback compilation Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- I do crossback compilation. The problem is that 32-bit libraries libstdc++ and other libraries will install in $PREFIX/$TARGET/lib32 for x86_64-Linux-gnu target. However, GCC does not try to find libraries in $PREFIX/$TARGET/lib32 with -m32. They should be installed in $PREFIX/$TARGET/lib instead of $PREFIX/$TARGET/lib32