Jelajahi Sumber

From: uclibc-bounces@uclibc.org on behalf of Peter Kjellerstedt
[peter.kjellerstedt@axis.com]
Peter Kellerstedt writes:

May I suggest the attached patch instead?
It handles PICFLAG the same way as it was already done
for other architectures (e.g., CRIS and frv).

Joakim Tjernlund 22 tahun lalu
induk
melakukan
783a979bbe
1 mengubah file dengan 10 tambahan dan 10 penghapusan
  1. 10 10
      Rules.mak

+ 10 - 10
Rules.mak

@@ -35,7 +35,7 @@
 # will build uClibc for 'arm'.
 # will build uClibc for 'arm'.
 
 
 ifndef CROSS
 ifndef CROSS
-CROSS=
+CROSS=/mnt/src/jocke/bb5/buildroot/build_powerpc_nofpu/staging_dir/bin/powerpc-linux-uclibc-
 endif
 endif
 CC= $(CROSS)gcc
 CC= $(CROSS)gcc
 AR= $(CROSS)ar
 AR= $(CROSS)ar
@@ -88,14 +88,7 @@ export RUNTIME_PREFIX DEVEL_PREFIX
 ARFLAGS:=r
 ARFLAGS:=r
 
 
 OPTIMIZATION:=
 OPTIMIZATION:=
-
-# 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
+PICFLAG:=-fPIC
 
 
 # Some nice CPU specific optimizations
 # Some nice CPU specific optimizations
 ifeq ($(strip $(TARGET_ARCH)),i386)
 ifeq ($(strip $(TARGET_ARCH)),i386)
@@ -178,7 +171,14 @@ endif
 ifeq ($(strip $(TARGET_ARCH)),cris)
 ifeq ($(strip $(TARGET_ARCH)),cris)
 	CPU_LDFLAGS-$(CONFIG_CRIS)+=-mcrislinux
 	CPU_LDFLAGS-$(CONFIG_CRIS)+=-mcrislinux
 	CPU_CFLAGS-$(CONFIG_CRIS)+=-mlinux
 	CPU_CFLAGS-$(CONFIG_CRIS)+=-mlinux
-	PICFLAG=-fpic
+	PICFLAG:=-fpic
+endif
+
+ifeq ($(strip $(TARGET_ARCH)),powerpc)
+# 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.
+	PICFLAG:=-fpic
 endif
 endif
 
 
 ifeq ($(strip $(TARGET_ARCH)),frv)
 ifeq ($(strip $(TARGET_ARCH)),frv)