From f1e85d44f964341ce2bcdc0c271df593c37acb2b Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Fri, 23 Nov 2007 17:57:32 +0000 Subject: Add necessary Makefile rules for the Blackfin. --- Rules.mak | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Rules.mak') diff --git a/Rules.mak b/Rules.mak index 33bc7ab99..9f70056f6 100644 --- a/Rules.mak +++ b/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 -- cgit v1.2.3