[uClibc-cvs] CVS update of uClibc (Rules.mak)

Joakim Tjernlund jocke at codepoet.org
Mon Aug 9 08:28:02 UTC 2004


    Date: Monday, August 9, 2004 @ 02:28:02
  Author: jocke
    Path: /var/cvs/uClibc

Modified: Rules.mak (1.166 -> 1.167)

From: uclibc-bounces at uclibc.org on behalf of Peter Kjellerstedt
[peter.kjellerstedt at 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).


Index: uClibc/Rules.mak
diff -u uClibc/Rules.mak:1.166 uClibc/Rules.mak:1.167
--- uClibc/Rules.mak:1.166	Fri Aug  6 10:11:42 2004
+++ uClibc/Rules.mak	Mon Aug  9 02:28:00 2004
@@ -35,7 +35,7 @@
 # will build uClibc for 'arm'.
 
 ifndef CROSS
-CROSS=
+CROSS=/mnt/src/jocke/bb5/buildroot/build_powerpc_nofpu/staging_dir/bin/powerpc-linux-uclibc-
 endif
 CC= $(CROSS)gcc
 AR= $(CROSS)ar
@@ -88,14 +88,7 @@
 ARFLAGS:=r
 
 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
 ifeq ($(strip $(TARGET_ARCH)),i386)
@@ -178,7 +171,14 @@
 ifeq ($(strip $(TARGET_ARCH)),cris)
 	CPU_LDFLAGS-$(CONFIG_CRIS)+=-mcrislinux
 	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
 
 ifeq ($(strip $(TARGET_ARCH)),frv)



More information about the uClibc-cvs mailing list