--- gcc-svn-262282.old/gcc/collect2.c +++ gcc-svn-262282/gcc/collect2.c @@ -1227,6 +1227,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.