libgo: fix DejaGNU testsuite compiler when using build sysroot
commit08dfde5a30ca818715e6d2bc2f2b592f8a98af77
authorIan Lance Taylor <iant@golang.org>
Tue, 12 Sep 2023 16:11:48 +0000 (12 09:11 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 12 Sep 2023 20:19:42 +0000 (12 13:19 -0700)
treee8b0bae224682fd071d9953ee38d457aafb8c74e
parentf73d2d61a5926f42e9e5d771d23868787ef9d800
libgo: fix DejaGNU testsuite compiler when using build sysroot

Patch from Thomas Schwinge.

PR testsuite/109951
* 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.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/527755
gcc/go/gofrontend/MERGE
libgo/Makefile.in
libgo/configure
libgo/configure.ac
libgo/testsuite/Makefile.in
libgo/testsuite/lib/libgo.exp
libgo/testsuite/libgo-test-support.exp.in