summaryrefslogtreecommitdiff
path: root/config/android.config
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-10-11 14:32:44 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-10-11 14:32:44 +0200
commite42e5daaf175007bf54f564770e53f3eb353e8f4 (patch)
treec4add3f981ac1e0bab18e221a7077ea0e5685760 /config/android.config
parent0ceaf3033cae9ae21cc26663a1654499d78ab08e (diff)
android: overwritte LDFLAGS
Diffstat (limited to 'config/android.config')
-rw-r--r--config/android.config2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/android.config b/config/android.config
index ec08d8c..d882ba8 100644
--- a/config/android.config
+++ b/config/android.config
@@ -36,7 +36,7 @@ ccache = use_ccache and 'ccache ' or ''
# Toolchain environment
os.environ['CPPFLAGS'] = "--sysroot=%s -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DANDROID -DPIC -I%s/usr/include" % (sysroot, sysroot)
os.environ['CFLAGS'] += "--sysroot=%s -fPIC -DPIC -ffunction-sections -funwind-tables -fstack-protector -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -mthumb -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wa,--noexecstack -I%s/usr/include " % (sysroot, sysroot)
-os.environ['LDFLAGS'] = "--sysroot=%s -fPIC -Wl,-no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections -Wl,-z,nocopyreloc -Wl,-dynamic-linker,/system/bin/linker -L%s/usr/lib %s " % (sysroot, sysroot, os.environ.get('LDFLAGS', ''))
+os.environ['LDFLAGS'] = "--sysroot=%s -fPIC -Wl,-no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections -Wl,-z,nocopyreloc -Wl,-dynamic-linker,/system/bin/linker -L%s/usr/lib " % (sysroot, sysroot)
if target_arch == Architecture.ARM:
os.environ['CFLAGS'] += "-march=armv5te -mtune=xscale -msoft-float "