Android hints: When Configure finishes, turn $^O into 'android'
authorBrian Fraser <fraserbn@gmail.com>
Mon, 13 Jan 2014 03:10:32 +0000 (00:10 -0300)
committerBrian Fraser <fraserbn@gmail.com>
Sun, 26 Jan 2014 17:44:21 +0000 (14:44 -0300)
During Configure, we want it to be linux-android, so that
it'll also go through all of the linux checks.

hints/linux-android.sh

index 3d79671..58be201 100644 (file)
@@ -249,3 +249,16 @@ if $test "X$hostosname" = "Xdarwin"; then
 fi
 
 osvers="`$run getprop ro.build.version.release`"
+
+# We want osname to be linux-android during Configure,
+# but plain 'android' afterwards.
+case "$src" in
+    /*) pwd="$src";;
+    *)  pwd=`test -f ../Configure && cd ..; pwd`
+        ;;
+esac
+
+$cat <<EOO >> $pwd/config.arch
+
+osname='android'
+EOO