summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2014-01-13 00:10:32 -0300
committerBrian Fraser <fraserbn@gmail.com>2014-01-26 14:44:21 -0300
commit055e6a969bbb939b87a0a8ed463695296e943b71 (patch)
tree7f00339151a97f3e1f97d1d2922f19bad010d19e /hints
parent1db8b1b95613d463d81a1eac483ee02c408e2d21 (diff)
downloadperl-055e6a969bbb939b87a0a8ed463695296e943b71.tar.gz
Android hints: When Configure finishes, turn $^O into 'android'
During Configure, we want it to be linux-android, so that it'll also go through all of the linux checks.
Diffstat (limited to 'hints')
-rw-r--r--hints/linux-android.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/hints/linux-android.sh b/hints/linux-android.sh
index 3d79671b80..58be2012c3 100644
--- a/hints/linux-android.sh
+++ b/hints/linux-android.sh
@@ -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