> DJ, can this be solved by toplevel Makefile.in's dependencies or > lang_env_dependencies?
The usual solution is to test $with_newlib and hard-code known results if it's set. You CANNOT rely on being able to link target programs in all cases. It's better if you can figure out a non-linking test to use instead.