From 78ada5381a9494dcb6c46aa2c886210ef32ae3eb Mon Sep 17 00:00:00 2001 From: Brian Fraser Date: Sun, 12 Jan 2014 23:56:47 -0300 Subject: [PATCH] Configure, Android hints: Changes to allow native builds --- Configure | 1 + hints/linux-android.sh | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/Configure b/Configure index a9bec78..71fa2d2 100755 --- a/Configure +++ b/Configure @@ -3391,6 +3391,7 @@ EOM case "$3" in *) osvers="$3" ;; esac + $test -f /system/lib/libandroid.so && osname=linux-android ;; MiNT) osname=mint ;; diff --git a/hints/linux-android.sh b/hints/linux-android.sh index 58be201..ae031cb 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`" -- 2.7.4