On Wed, Feb 22, 2012 at 11:20 AM, Jing Yu <jin...@google.com> wrote: > So far, Android ARM toolchain, which builds Android platform for ARM > boards, does not enable RTTI and exceptions by default. There are > license concerns with the use of GNU libstdc++ and libsupc++. >
I am not a lawyer. From http://www.gnu.org/licenses/gcc-exception-faq.html I use a proprietary compiler toolchain without any parts of GCC to compile my program, and link it with libstdc++. My program itself does not include any runtime library code the same way that GCC-compiled programs include libgcc. Can I still take advantage of the exception? Yes. While combining libgcc with GCC-compiled object code is probably the most common way the exception is used, neither the GPL nor the GCC Runtime Library Exception distinguish between static linking, dynamic linking, and other methods for combining code in their conditions. The same permissions are available to you, under the same terms, no matter which method you use. It indicates both libstdc++.a and libstdc++.so are covered by GPLv3 run-time exception. -- H.J.