aboutsummaryrefslogtreecommitdiffstats
path: root/make/lib
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-10-18 06:59:53 +0200
committerSven Gothel <[email protected]>2011-10-18 06:59:53 +0200
commitf818817f3c0b14fe8317eaf5e1e1fff0a19884d0 (patch)
tree39c2af3e797664ff5cc68d1cf945526cf50fb801 /make/lib
parent24eefae081d08920989f123976e6754dc6d0793b (diff)
Android: Use NDK default gcc settings
Diffstat (limited to 'make/lib')
-rw-r--r--make/lib/gluegen-cpptasks-android-armv7.xml21
1 files changed, 19 insertions, 2 deletions
diff --git a/make/lib/gluegen-cpptasks-android-armv7.xml b/make/lib/gluegen-cpptasks-android-armv7.xml
index f2ed4cf..e96036a 100644
--- a/make/lib/gluegen-cpptasks-android-armv7.xml
+++ b/make/lib/gluegen-cpptasks-android-armv7.xml
@@ -24,14 +24,31 @@
<compilerarg value="--sysroot=${env.TARGET_OS_PATH}" /> <!-- set root dir for lib and include -->
<compilerarg value="-B" /> <!--add additional directory for search -->
<compilerarg value="${env.TARGET_TOOL_PATH}/libexec/gcc/${env.TARGET_ARCH}/${env.GCC_VERSION}" />
- <compilerarg value="-march=armv7-a" />
- <compilerarg value="-fpic" />
+ <!--compilerarg value="-march=armv7-a" /-->
+ <compilerarg value="-fpic" />
+ <compilerarg value="-ffunction-sections" />
+ <compilerarg value="-funwind-tables" />
+ <compilerarg value="-fstack-protector" />
+ <compilerarg value="-march=armv5te" />
+ <compilerarg value="-mtune=xscale" />
+ <compilerarg value="-msoft-float" />
+ <compilerarg value="-mthumb" />
+ <compilerarg value="-Os" />
+ <compilerarg value="-fomit-frame-pointer" />
+ <compilerarg value="-fno-strict-aliasing" />
+ <compilerarg value="-finline-limit=64" />
+ <compilerarg value="-Wa,--noexecstack" />
+ <compilerarg value="-O2" />
<compilerarg value="-isystem" />
<compilerarg value="${env.TARGET_OS_PATH}/include"/>
<compilerarg value="-isystem" />
<compilerarg value="${env.TARGET_TOOL_PATH}/lib/gcc/${env.TARGET_ARCH}/${env.GCC_VERSION}/include" /> <!--includes stdarg.h -->
<defineset>
<define name="__unix__"/>
+ <define name="__ARM_ARCH_5__" />
+ <define name="__ARM_ARCH_5T__" />
+ <define name="__ARM_ARCH_5E__" />
+ <define name="__ARM_ARCH_5TE__" />
<define name="ANDROID" />
<define name="_DEBUG" if="c.compiler.use-debug"/>
<define name="DEBUG" if="c.compiler.use-debug"/>