Add initial support for applying the sysroot to library search paths.This is still very much a WIP, but sysroot was completely broken beforethis so we are moving closer to correctness.The crux of
Add initial support for applying the sysroot to library search paths.This is still very much a WIP, but sysroot was completely broken beforethis so we are moving closer to correctness.The crux of this is that 'ld' (on Linux, the only place I'm touchinghere) doesn't apply the sysroot to any flags given to it. Instead, thedriver must translate all the paths it adds to the link step with thesystem root. This is easily observed by building a GCC that supportssysroot, and checking its driver output.This patch just fixes the non-multilib library search paths. We shouldalso use this in many other places, but first things first.This also allows us to make the Linux 'ld' test independent of the hostsystem. This in turn will allow me to check in test tree configurationsbased on various different distro's configuration. Again, WIP.llvm-svn: 140990
show more ...