summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-09-11 21:23:32 -0700
committerDan Albert <danalbert@google.com>2015-09-11 23:18:50 -0700
commit0b654d69a7a3e098f18a115db9df1611c550ad26 (patch)
tree2d7f9a42f081362364dff628c0ab4649201a32d1
parente20698880a95d5f394a262bee42b0833550c3f8c (diff)
downloadgdb-0b654d69a7a3e098f18a115db9df1611c550ad26.tar.gz
Don't run a.out if we might be cross compiling.
$cross_compiling might be set to "maybe" when we're building for x86 Android. There seems to either be a race in fgets or an incompatibility of running bionic on the host (which we depend on for the bionic host tests) that causes this absolutely trivial program to hang. As a work around, just admit that we actually are cross compiling. Bug: http://b/24016357 Change-Id: I054a19c9516a6ed972d47aa80000c357b64da804
-rwxr-xr-xgdb-7.10/gdb/gdbserver/configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb-7.10/gdb/gdbserver/configure b/gdb-7.10/gdb/gdbserver/configure
index e8cf136c2..2aad07fd9 100755
--- a/gdb-7.10/gdb/gdbserver/configure
+++ b/gdb-7.10/gdb/gdbserver/configure
@@ -2973,7 +2973,7 @@ ac_exeext=$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
# If not cross compiling, check that we can run a simple program.
-if test "$cross_compiling" != yes; then
+if test "$cross_compiling" = no; then
if { ac_try='./$ac_file'
{ { case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;