2013/8/21 Joseph S. Myers <jos...@codesourcery.com>: > On Mon, 12 Aug 2013, Terry Guo wrote: > >> them to linker. When there is only one compatible library, the linker can >> find it by searching all paths, the whole thing can work. But when there are >> more than one compatible libraries spread in different paths, I am not sure >> it works. You can try it out. > > The linker definitely does not support specifying multiple sysroots, to be > searched one after the other. > > Logically, what you want is for all paths for one compatible multilib - > several different paths, both inside and outside any sysroot - to be > searched before any paths from the next multilib are searched. Not (paths > of one type for all compatible multilibs, then paths of the next type for > all compatible multilibs).
That is exactly what I've tried to implement. Use one suffix for all paths, then another suffix etc. with the default paths in the end. It seems to work OK but more tests are required. And I suppose it will also require additional support in dynamic linker. Ilya > > -- > Joseph S. Myers > jos...@codesourcery.com