aboutsummaryrefslogtreecommitdiff
path: root/gotools/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'gotools/configure.ac')
-rw-r--r--gotools/configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/gotools/configure.ac b/gotools/configure.ac
index fcc68536296..81afe9ed886 100644
--- a/gotools/configure.ac
+++ b/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_alias" = "$target_alias")
dnl Test for -lsocket and -lnsl. Copied from libjava/configure.ac.
AC_CACHE_CHECK([for socket libraries], gotools_cv_lib_sockets,