[Toybox] [PATCH 01/10] configure: Hardcode android cross compilation parameters.

Georgi Chorbadzhiyski gf at unixsol.org
Wed Mar 7 16:38:53 PST 2012


---
 configure |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 4e05af7..0df5423 100644
--- a/configure
+++ b/configure
@@ -11,3 +11,12 @@ CFLAGS="$CFLAGS -funsigned-char"
 [ -z "$CC" ] && CC=cc
 [ -z "$STRIP" ] && STRIP=strip
 [ -z "$HOSTCC" ] && HOSTCC=gcc
+
+export V=1
+export NDK_ROOT="/home/gf/android-ndk-r7b"
+export CC=gcc
+export CROSS_COMPILE="$NDK_ROOT/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-"
+export BASE="$NDK_ROOT/platforms/android-9/arch-arm"
+cp -v $BASE/usr/lib/crtbegin_dynamic.o .
+cp -v $BASE/usr/lib/crtend_android.o .
+export CFLAGS="-Wl,-rpath-link=$BASE/usr/lib/,-dynamic-linker=/system/bin/linker -L$BASE/usr/lib/ -I$BASE/usr/include -lc"
-- 
1.7.5.1


 1331167133.0


More information about the Toybox mailing list