]> err.no Git - linux-2.6/commitdiff
Blackfin arch: -mno-fdpic works
authorMike Frysinger <michael.frysinger@analog.com>
Sun, 21 Oct 2007 14:55:18 +0000 (22:55 +0800)
committerBryan Wu <bryan.wu@analog.com>
Sun, 21 Oct 2007 14:55:18 +0000 (22:55 +0800)
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 <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
arch/blackfin/Makefile

index d80421c7b302e10eae9dcd0c45fdd193c979681c..4a208f30f5c4b0845556441d5385223eb220f2bb 100644 (file)
@@ -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=_