]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sh: only add -mno-fdpic if the compiler supports it
authorMike Frysinger <vapier@gentoo.org>
Thu, 13 Oct 2011 04:45:47 +0000 (00:45 -0400)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Fri, 2 Dec 2011 04:46:20 +0000 (13:46 +0900)
commit4cde1740d259eb3d1f6943e6eb131c33e7b9faf3
tree344a5007145f529a81435129483b30d1388782e4
parent0c2a37a5d36a7c78cb135b27e1e911c4cb94fe80
sh: only add -mno-fdpic if the compiler supports it

Not all SuperH toolchains support -mno-fdpic.  Chances are good that if
the flag doesn't work, it isn't defaulting to the FDPIC ABI, so the flag
isn't needed.  So only add it if it is actually supported.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/sh/cpu/sh2/config.mk