On 07/20/2016 08:04 AM, Szabolcs Nagy wrote:
Fix target library tests when gcc is built using --with-build-sysroot.
The dejagnu find_gcc function cannot handle if CC needs extra flags
like --sysroot. So for testing target libraries use the same CC that
was used for building the target libs. This change assumes the test
is ran from make.
Another approach would be to pass down the sysroot flags
separately and add
set TEST_ALWAYS_FLAGS "$(SYSROOT_CFLAGS_FOR_TARGET)"
to site.exp like the gcc site.exp does, but that's more
changes.
But isn't all this supposed to still work if someone invokes runtest
directly?
Can we get the right magic into the generated site.exp which might
resolve these issues.
jeff