Home | History | Annotate | Download | only in gcc
      1 From 8fb36c2f3114aec33c84a43eb5fd14c845f65bfc Mon Sep 17 00:00:00 2001
      2 From: David 'Digit' Turner <digit (a] android.com>
      3 Date: Sat, 8 Jan 2011 14:46:50 +0100
      4 Subject: [PATCH] arm-linux-androideabi: make -fpic the default, instead of -fPIC
      5 
      6 This patch modifies the arm-linux-androideabi configuration to use
      7 -fpic by default, instead of -fPIC.
      8 
      9 This should only affect users the standalone Android NDK toolchain,
     10 since both the Android platform and NDK build scripts will append
     11 the -fpic flag at compile time for all generated object files.
     12 
     13 Note that this doesn't change the arm-eabi configuration to avoid
     14 breaking stuff when building the kernel.
     15 
     16 Change-Id: Ib7f97a05bf1bb83778863f885628c1741896fb0a
     17 ---
     18  gcc-4.4.3/gcc/config/linux-android.h |    2 +-
     19  1 files changed, 1 insertions(+), 1 deletions(-)
     20 
     21 diff --git a/gcc-4.4.3/gcc/config/linux-android.h b/gcc-4.4.3/gcc/config/linux-android.h
     22 index a43bab5..ae4b26f 100644
     23 --- a/gcc-4.4.3/gcc/config/linux-android.h
     24 +++ b/gcc-4.4.3/gcc/config/linux-android.h
     25 @@ -37,7 +37,7 @@
     26  
     27  #define ANDROID_CC1_SPEC						\
     28    "%{!mglibc:%{!muclibc:%{!mbionic: -mbionic}}} "			\
     29 -  "%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: -fPIC}}}}"
     30 +  "%{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: -fpic}}}}"
     31  
     32  #define ANDROID_CC1PLUS_SPEC						\
     33    "%{!fexceptions:%{!fno-exceptions: -fno-exceptions}} "		\
     34 -- 
     35 1.7.3.1
     36 
     37