svn commit: trunk/uClibc

vapier at uclibc.org vapier at uclibc.org
Mon Dec 11 00:27:49 UTC 2006


Author: vapier
Date: 2006-12-10 16:27:48 -0800 (Sun, 10 Dec 2006)
New Revision: 16837

Log:
tie PICFLAG:=-mfdpic to format rather than architecture

Modified:
   trunk/uClibc/Rules.mak


Changeset:
Modified: trunk/uClibc/Rules.mak
===================================================================
--- trunk/uClibc/Rules.mak	2006-12-11 00:25:23 UTC (rev 16836)
+++ trunk/uClibc/Rules.mak	2006-12-11 00:27:48 UTC (rev 16837)
@@ -143,7 +143,11 @@
 OPTIMIZATION+=$(call check_gcc,-fno-strength-reduce,)
 endif
 
-PICFLAG:=-fPIC
+ifeq ($(UCLIBC_FORMAT_FDPIC_ELF),y)
+	PICFLAG:=-mfdpic
+else
+	PICFLAG:=-fPIC
+endif
 PIEFLAG_NAME:=-fPIE
 
 # Some nice CPU specific optimizations
@@ -282,13 +286,8 @@
 	PIEFLAG_NAME:=-fpie
 endif
 
-ifeq ($(TARGET_ARCH),bfin)
-	PICFLAG:=-mfdpic
-endif
-
 ifeq ($(TARGET_ARCH),frv)
 	CPU_LDFLAGS-$(CONFIG_FRV)+=-melf32frvfd
-	CPU_CFLAGS-$(CONFIG_FRV)+=-mfdpic
 	# Using -pie causes the program to have an interpreter, which is
 	# forbidden, so we must make do with -shared.  Unfortunately,
 	# -shared by itself would get us global function descriptors




More information about the uClibc-cvs mailing list