summaryrefslogtreecommitdiff
path: root/hints/linux-android.sh
diff options
context:
space:
mode:
authorJess Robinson <castaway@desert-island.me.uk>2013-01-31 14:15:17 +0000
committerBrian Fraser <fraserbn@gmail.com>2014-01-26 14:44:19 -0300
commitbbbf0767314ad86932380126374b4aba250945ce (patch)
tree43b889c9fbaf6edf156c474064c43d2b32bde32c /hints/linux-android.sh
parent9b0f5f8a83f83c42f4d8568a7d535097cd88775c (diff)
downloadperl-bbbf0767314ad86932380126374b4aba250945ce.tar.gz
Android hints: set targetsh to /system/bin/sh
Android, for reasons best known to itself, doesn't have a "/bin/sh" it has a "/system/bin/sh". We need to run "/bin/sh" as $sh inside ./Configure on the host, but store a different path for use on the actual Android system (eg by backticks, system etc, in SH_PATH). The new variable is "targetsh" and defaults to "sh" unless changed by the hints file/Configure params.
Diffstat (limited to 'hints/linux-android.sh')
-rw-r--r--hints/linux-android.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/hints/linux-android.sh b/hints/linux-android.sh
index 0920ce8f09..cc7895cb83 100644
--- a/hints/linux-android.sh
+++ b/hints/linux-android.sh
@@ -2,9 +2,8 @@
userelocatableinc='define'
-# Having fun with the dlopen check.. :(
-#d_dlopen='define'
-#d_dlerror='define'
+# On Android the shell is /system/bin/sh:
+targetsh='/system/bin/sh'
case "$src" in