summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hints/linux-android.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/hints/linux-android.sh b/hints/linux-android.sh
index 0f290591c4..7086d47d93 100644
--- a/hints/linux-android.sh
+++ b/hints/linux-android.sh
@@ -257,6 +257,16 @@ define)
if $test "X$hostosname" = "Xdarwin"; then
firstmakefile=GNUmakefile;
fi
+
+# When cross-compiling, full_csh and d_csh will get the
+# host's values, which is all sorts of wrong. So unless
+# full_csh has been set on the command line, set d_csh to
+# undef.
+case "$full_csh" in
+'') d_csh="$undef"
+;;
+esac
+
;;
*)
ldflags="$ldflags -L/system/lib"