Browse Source

Add necessary Makefile rules for the Blackfin.

Bernd Schmidt 16 years ago
parent
commit
f1e85d44f9
1 changed files with 12 additions and 0 deletions
  1. 12 0
      Rules.mak

+ 12 - 0
Rules.mak

@@ -306,6 +306,18 @@ ifeq ($(TARGET_ARCH),powerpc)
 
 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