svn commit: trunk/uClibc

bernds at uclibc.org bernds at uclibc.org
Fri Nov 23 17:57:33 UTC 2007


Author: bernds
Date: 2007-11-23 09:57:32 -0800 (Fri, 23 Nov 2007)
New Revision: 20509

Log:
Add necessary Makefile rules for the Blackfin.


Modified:
   trunk/uClibc/Rules.mak


Changeset:
Modified: trunk/uClibc/Rules.mak
===================================================================
--- trunk/uClibc/Rules.mak	2007-11-23 17:28:17 UTC (rev 20508)
+++ trunk/uClibc/Rules.mak	2007-11-23 17:57:32 UTC (rev 20509)
@@ -306,6 +306,18 @@
 
 endif
 
+ifeq ($(TARGET_ARCH),bfin)
+ifeq ($(UCLIBC_FORMAT_FDPIC_ELF),y)
+	CPU_CFLAGS-y:=-mfdpic
+	CPU_LDFLAGS-y += -Wl,-melf32bfinfd
+	PICFLAG:=-fpic
+	PIEFLAG_NAME:=-fpie
+endif
+ifeq ($(UCLIBC_FORMAT_SHARED_FLAT),y)
+	PICFLAG := -mleaf-id-shared-library
+endif
+endif
+
 ifeq ($(TARGET_ARCH),frv)
 	CPU_LDFLAGS-$(CONFIG_FRV)+=-Wl,-melf32frvfd
 	# Using -pie causes the program to have an interpreter, which is




More information about the uClibc-cvs mailing list