In the situation of multilib, the gcc objects are in a /32 directory.
On Debian, the libraries is under /libo32 to avoid confliction.
This patch enables clang find gcc in /32, and C lib in /libo32.
Paths
| Differential D112158
mips: fix search path for multilib o32 ClosedPublic Authored by wzssyqa on Oct 20 2021, 10:07 AM.
Details Summary In the situation of multilib, the gcc objects are in a /32 directory. This patch enables clang find gcc in /32, and C lib in /libo32.
Diff Detail
Event TimelineComment Actions
Comment Actions
This feature starts from llvm-8. And this problem is since then.
I will do so. This revision is now accepted and ready to land.Oct 28 2021, 12:17 AM Closed by commit rG284c2ebc5e05: [clang][MIPS] Fix search path for Debian multilib O32 (authored by wzssyqa, committed by atanasyan). · Explain WhyOct 28 2021, 12:24 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 382935 clang/lib/Driver/ToolChains/Gnu.cpp
clang/lib/Driver/ToolChains/Linux.cpp
clang/test/Driver/Inputs/debian_6_mips64_tree/libo32/.keep
clang/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/32/crtbegin.o
clang/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/32/crtend.o
clang/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/n32/crtbegin.o
clang/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/n32/crtend.o
clang/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/32/crtbegin.o
clang/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/32/crtend.o
clang/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/n32/crtbegin.o
clang/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/n32/crtend.o
clang/test/Driver/Inputs/debian_6_mips64_tree/usr/libo32/crt1.o
clang/test/Driver/Inputs/debian_6_mips64_tree/usr/libo32/crti.o
clang/test/Driver/Inputs/debian_6_mips64_tree/usr/libo32/crtn.o
clang/test/Driver/linux-ld.c
|