diff options
Diffstat (limited to 'Rules.mak')
-rw-r--r-- | Rules.mak | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -88,7 +88,15 @@ export RUNTIME_PREFIX DEVEL_PREFIX ARFLAGS:=r OPTIMIZATION:= -PICFLAG:=-fPIC + +# PowerPC can hold 8192 entries in its GOT with -fpic which is more than enough. Therefore use +# -fpic which will reduce code size and generates faster code. +ifeq ($(strip $(TARGET_ARCH)),powerpc) + PICFLAG:=-fpic +else + PICFLAG:=-fPIC +endif + # Some nice CPU specific optimizations ifeq ($(strip $(TARGET_ARCH)),i386) OPTIMIZATION+=$(call check_gcc,-mpreferred-stack-boundary=2,) |