/usr/src/gcc-6/debian/patches/gotools-configury.diff is in gcc-6-source 6.4.0-17ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # DP: Fix gotools cross build.
* Makefile.am: Use GOC configured in configure.ac for cross builds.
* configure.ac: Fix NATIVE conditional.
* Makefile.in, configure: Regenerate.
Index: b/src/gotools/configure.ac
===================================================================
--- a/src/gotools/configure.ac
+++ b/src/gotools/configure.ac
@@ -46,7 +46,7 @@ AC_PROG_INSTALL
AC_PROG_CC
AC_PROG_GO
-AM_CONDITIONAL(NATIVE, test "$cross_compiling" = no)
+AM_CONDITIONAL(NATIVE, test "$host" = "$target")
dnl Test for -lsocket and -lnsl. Copied from libjava/configure.ac.
AC_CACHE_CHECK([for socket libraries], gotools_cv_lib_sockets,
|