GNOME Bugzilla – Bug 762526
default C++ flags aren't correct on android
Last modified: 2016-02-24 11:14:14 UTC
Currently, the C++ flags are a direct copy of the C flags however by default, Android builds with the following extra C++ flags, -fno-rtti and -fno-exceptions that are overridable with ndk-build by just adding -frrti or -fexceptions in one of many strategic places. The question is how are we going to expose this properly.
Created attachment 321945 [details] [review] android: add -fno-rtti and -fno-exceptions to the default CXX flags This brings the defaults back in line with ndk-build.
And while performing a full-rebuild, taglib has failed due to its use of dynamic_cast.
Created attachment 322188 [details] [review] taglib: explicitly enable -frtti on android
Created attachment 322194 [details] [review] soundtouch: explicitly enable -fexceptions on android
A full rebuild compiled and executes tutorial-3 correctly. commit 973905f6c0fcbb44da00de17524e51388907c14e Author: Matthew Waters <matthew@centricular.com> Date: Tue Feb 23 22:48:08 2016 +1100 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 commit 31bbc288e82f41baf72b48117b65224b29a861f0 Author: Matthew Waters <matthew@centricular.com> Date: Wed Feb 24 10:57:51 2016 +1100 soundtouch: explicitly enable -fexceptions on android The default now is to disable it in line with the NDK build system https://bugzilla.gnome.org/show_bug.cgi?id=762526 commit d2b9b56abe524776dd247af1083dfd5fcbf716fc Author: Matthew Waters <matthew@centricular.com> Date: Wed Feb 24 10:36:54 2016 +1100 taglib: explicitly enable -frtti on android The default now is to disable it in line with the NDK build system https://bugzilla.gnome.org/show_bug.cgi?id=762526