I tried --with-sysroot. But it doesn't work right for me if I run gcc/ld in the build directory. The problem is both gcc/ld will change sysroot to $(target_alias) under the build directory. But it is not the sysroot at all. I will see what I can do. H.J.