--- gcc-10.4.0.old/gcc/collect2.cc +++ gcc-10.4.0/gcc/collect2.cc @@ -1211,6 +1211,11 @@ AIX loader always searches for libraries. */ add_prefix (&libpath_lib_dirs, "/lib"); add_prefix (&libpath_lib_dirs, "/usr/lib"); + add_prefix (&libpath_lib_dirs, "__META_SYSTREE__/pkg/syslib/lib" ); + add_prefix (&libpath_lib_dirs, "__META_SYSTREE__/pkg/glibc/lib" ); + add_prefix (&libpath_lib_dirs, "__META_SYSTREE__/pkg/musl/lib" ); + add_prefix (&libpath_lib_dirs, "__META_SYSTREE__/pkg/toolchain/lib" ); + add_prefix (&libpath_lib_dirs, "__META_SYSTREE__/pkg/xorg/lib" ); #endif /* Get any options that the upper GCC wants to pass to the sub-GCC.