From: Mike Frysinger Date: Sun, 21 Oct 2007 14:55:18 +0000 (+0800) Subject: Blackfin arch: -mno-fdpic works X-Git-Tag: v2.6.24-rc1~115^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1c668d82465cd5c17030c0f69561841374380ac8;p=linux-2.6-omap-h63xx.git Blackfin arch: -mno-fdpic works now that -mno-fdpic works, force it on so that we can use any blackfin toolchain to build up the kernel and kernel modules wrap -mno-fdpic in $(call cc-option,-mno-fdpic) so that older toolchains will still work Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu --- diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile index d80421c7b30..4a208f30f5c 100644 --- a/arch/blackfin/Makefile +++ b/arch/blackfin/Makefile @@ -12,6 +12,8 @@ LDFLAGS_vmlinux := -X OBJCOPYFLAGS := -O binary -R .note -R .comment -S GZFLAGS := -9 +CFLAGS += $(call cc-option,-mno-fdpic) +AFLAGS += $(call cc-option,-mno-fdpic) CFLAGS_MODULE += -mlong-calls KALLSYMS += --symbol-prefix=_