libgo: fix DejaGNU testsuite compiler when using build sysroot
Patch from Thomas Schwinge.
PR testsuite/109951
libgo/
* configure.ac: 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
* Makefile.in: Regenerate.
* configure: Likewise.
* testsuite/Makefile.in: Likewise.
* testsuite/lib/libgo.exp (libgo_init): If
'--with-build-sysroot=[...]' was specified, use it for build-tree
testing.
* testsuite/libgo-test-support.exp.in (GOC_UNDER_TEST): Don't set.
(SYSROOT_CFLAGS_FOR_TARGET): Set.
Change-Id: I30f38fc01744c78f2e29ee81d25cfb4309749b38
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/527755
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>