diff options
author | Sven Gothel <[email protected]> | 2012-03-07 02:19:56 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-03-07 02:19:56 +0100 |
commit | f303bc43437e2fa6ccc8d3f8facd2e5dc7c55069 (patch) | |
tree | 595326e29a91a905f876091897f96dabb7a1cdac /make/lib | |
parent | eb68551873f47261a812e81427fc4ba7e55b197a (diff) |
android build/test fixes and refinement
remote test fix:
- run targetcommand w/ explicit root via 'su'
- rsync: more excludes, only use '-rt'
- explicit chmod 644 on results
- adb commands include naming of remote machine: -s ${env.TARGET_IP}:${env.TARGET_ADB_PORT}
GlueGen-cpptasks-android-armv7:
- use unique project name (warning)
- gcc +
-fpic
-D__unix__
- ld +
-fpic
-nostdlib
-Bdynamic
-Wl,-dynamic-linker,/system/bin/linker
-Wl,-z,nocopyreloc
explicit add 'dl' to list of libs
Diffstat (limited to 'make/lib')
-rw-r--r-- | make/lib/gluegen-cpptasks-android-armv7.xml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/make/lib/gluegen-cpptasks-android-armv7.xml b/make/lib/gluegen-cpptasks-android-armv7.xml index 7d80860..5004273 100644 --- a/make/lib/gluegen-cpptasks-android-armv7.xml +++ b/make/lib/gluegen-cpptasks-android-armv7.xml @@ -13,7 +13,7 @@ Example: gluegen/make/make.gluegen.all.linux-x86.sh --> -<project name="GlueGen-cpptasks" basedir="." > +<project name="GlueGen-cpptasks-android-armv7" basedir="." > <import file="../gluegen-cpptasks-base.xml" optional="false" /> @@ -30,8 +30,10 @@ <compilerarg value="-ffunction-sections" /> <compilerarg value="-funwind-tables" /> <compilerarg value="-fstack-protector" /> + <compilerarg value="-fpic" /> <compilerarg value="-march=armv7-a" /> + <!--compilerarg value="-march=armv5te" /--> <compilerarg value="-mtune=xscale" /> <compilerarg value="-msoft-float" /> @@ -48,6 +50,7 @@ <compilerarg value="-Wa,--noexecstack" /> <includepath path="${env.NDK_TOOLCHAIN_ROOT}/lib/gcc/${env.TARGET_TRIPLE}/${env.GCC_VERSION}/include" /> <!-- for stdarg.h --> <defineset> + <define name="__unix__" /> <define name="__ARM_ARCH_5__" /> <define name="__ARM_ARCH_5T__" /> <define name="__ARM_ARCH_5E__" /> @@ -61,6 +64,16 @@ <linker id="linker.cfg.android" name="gcc"> <linkerarg value="--sysroot=${env.TARGET_PLATFORM_ROOT}" /> + <linkerarg value="-fpic" /> + + <linkerarg value="-march=armv7-a" /> + <!--linkerarg value="-march=armv5te" /--> + + <linkerarg value="-nostdlib" /> + <linkerarg value="-Bdynamic" /> + <linkerarg value="-Wl,-dynamic-linker,/system/bin/linker" /> + <linkerarg value="-Wl,-z,nocopyreloc" /> + <linkerarg value="--demangle" /> <linkerarg value="--gc-sections" /> <linkerarg value="--no-undefined" /> @@ -70,7 +83,7 @@ enforce that libgcc is linked after source files but before other shared libraries. --> <libset dir="${env.NDK_TOOLCHAIN_ROOT}/lib/gcc/${env.TARGET_TRIPLE}/${env.GCC_VERSION}/armv7-a" libs="gcc" /> - <libset libs="c,m" /> + <libset libs="c,m,dl" /> </linker> </target> |