diff options
author | Brian Fraser <fraserbn@gmail.com> | 2014-01-12 23:56:47 -0300 |
---|---|---|
committer | Brian Fraser <fraserbn@gmail.com> | 2014-01-26 14:44:21 -0300 |
commit | 78ada5381a9494dcb6c46aa2c886210ef32ae3eb (patch) | |
tree | 0cecf68f9a2e992668a2797bb61e9f4fc5423cda /hints/linux-android.sh | |
parent | 055e6a969bbb939b87a0a8ed463695296e943b71 (diff) | |
download | perl-78ada5381a9494dcb6c46aa2c886210ef32ae3eb.tar.gz |
Configure, Android hints: Changes to allow native builds
Diffstat (limited to 'hints/linux-android.sh')
-rw-r--r-- | hints/linux-android.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hints/linux-android.sh b/hints/linux-android.sh index 58be2012c3..ae031cbd27 100644 --- a/hints/linux-android.sh +++ b/hints/linux-android.sh @@ -20,6 +20,12 @@ d_libname_unique='define' # On Android the shell is /system/bin/sh: targetsh='/system/bin/sh' +case "$usecrosscompile" in +define) ;; + # If we aren't cross-compiling, then sh should also point + # to /system/bin/sh. +*) sh=$targetsh ;; +esac # Make sure that we look for libm libswanted="$libswanted m" @@ -244,9 +250,13 @@ $chmod a+rx $from fi # Cross-compiling with adb +case "$usecrosscompile" in +define) if $test "X$hostosname" = "Xdarwin"; then firstmakefile=GNUmakefile; fi +;; +esac osvers="`$run getprop ro.build.version.release`" |