projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1db8b1b
)
Android hints: When Configure finishes, turn $^O into 'android'
author
Brian Fraser
<fraserbn@gmail.com>
Mon, 13 Jan 2014 03:10:32 +0000
(
00:10
-0300)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/hints/linux-android.sh
b/hints/linux-android.sh
index
3d79671
..
58be201
100644
(file)
--- 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