Android hints: set targetsh to /system/bin/sh
authorJess Robinson <castaway@desert-island.me.uk>
Thu, 31 Jan 2013 14:15:17 +0000 (14:15 +0000)
committerBrian Fraser <fraserbn@gmail.com>
Sun, 26 Jan 2014 17:44:19 +0000 (14:44 -0300)
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.

hints/linux-android.sh

index 0920ce8..cc7895c 100644 (file)
@@ -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