Skip to contentSkip to conversation

powerpc: Support -fpic too with mrelocatable

PATCH New Joakim Tjernlund 1 participant 1 message Oct 10, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Support -fpic too with mrelocatable

---
 sysv4.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
gcc/config/rs6000/sysv4.h +2 -1
index 8da8410..e4b8280 100644
@@ -227,7 +227,8 @@ do {                \
     }                                                                  \
                                                                        \
   else if (TARGET_RELOCATABLE)                                         \
-    flag_pic = 2;                                                      \
+    if (!flag_pic)                                                     \
+      flag_pic = 2;                                                    \
 } while (0)
 
 #ifndef RS6000_BI_ARCH
Signature · 1 line
1.7.2.2