summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2016-02-23 22:48:08 +1100
committerMatthew Waters <matthew@centricular.com>2016-02-24 21:22:00 +1100
commit973905f6c0fcbb44da00de17524e51388907c14e (patch)
treed53c3e0f1e58c2f6d29ce22d1b22dcca2750bacd
parent31bbc288e82f41baf72b48117b65224b29a861f0 (diff)
android: add -fno-rtti and -fno-exceptions to the default CXXFLAGS
This is the default in ndk-build unless explicitly overridden by the app and android system libraries seem to be built with these flags as well. https://bugzilla.gnome.org/show_bug.cgi?id=762526
-rw-r--r--config/android.config2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/android.config b/config/android.config
index 82227db4..967bc2ab 100644
--- a/config/android.config
+++ b/config/android.config
@@ -133,7 +133,7 @@ elif target_arch == Architecture.X86:
# Toolchain environment
os.environ['CPPFLAGS'] = '--sysroot=%s -I%s/usr/include %s' % (sysroot, sysroot, defines)
os.environ['CFLAGS'] += "%s %s -Wa,--noexecstack" % (cflags, defines)
-os.environ['CXXFLAGS'] = os.environ['CFLAGS']
+os.environ['CXXFLAGS'] = os.environ['CFLAGS'] + ' -fno-rtti -fno-exceptions'
os.environ['LDFLAGS'] = '%s' % (ldflags,)
def cmd(command):