Home | History | Annotate | Download | only in gcc
      1 From ac8ac691023b7f2b2c21330fef1f28ef56aeba65 Mon Sep 17 00:00:00 2001
      2 From: David 'Digit' Turner <digit (a] android.com>
      3 Date: Wed, 24 Nov 2010 14:26:38 +0100
      4 Subject: [PATCH] Enable C++ exceptions and RTTI by default.
      5 
      6 With this change, -fexceptions and -frtti become default options
      7 when compiling C++ sources.
      8 
      9 Change-Id: Ie136fc1dd57d15dfa062730118c2f8496d25cc62
     10 ---
     11  gcc-4.4.3/gcc/config/linux-android.h |    4 ++--
     12  1 files changed, 2 insertions(+), 2 deletions(-)
     13 
     14 diff --git a/gcc-4.4.3/gcc/config/linux-android.h b/gcc-4.4.3/gcc/config/linux-android.h
     15 index a43bab5..353baf0 100644
     16 --- a/gcc-4.4.3/gcc/config/linux-android.h
     17 +++ b/gcc-4.4.3/gcc/config/linux-android.h
     18 @@ -40,8 +40,8 @@
     19    "%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: -fPIC}}}}"
     20  
     21  #define ANDROID_CC1PLUS_SPEC						\
     22 -  "%{!fexceptions:%{!fno-exceptions: -fno-exceptions}} "		\
     23 -  "%{!frtti:%{!fno-rtti: -fno-rtti}}"
     24 +  "%{!fexceptions:%{!fno-exceptions: -fexceptions}} "		\
     25 +  "%{!frtti:%{!fno-rtti: -frtti}}"
     26  
     27  #define ANDROID_LIB_SPEC \
     28    "%{!static: -ldl}"
     29 -- 
     30 1.7.3.1
     31 
     32