Android hints: Set d_csh to undef in cross builds
authorBrian Fraser <fraserbn@gmail.com>
Thu, 23 Jan 2014 22:41:22 +0000 (23:41 +0100)
committerBrian Fraser <fraserbn@gmail.com>
Sun, 26 Jan 2014 17:44:21 +0000 (14:44 -0300)
hints/linux-android.sh

index 0f29059..7086d47 100644 (file)
@@ -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"