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). -- Joseph S. Myers jos...@codesourcery.com