mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
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>
This commit is contained in:
parent
0c2a37a5d3
commit
4cde1740d2
1 changed files with 2 additions and 1 deletions
|
@ -24,10 +24,11 @@
|
||||||
ENDIANNESS += -EB
|
ENDIANNESS += -EB
|
||||||
|
|
||||||
ifdef CONFIG_SH2A
|
ifdef CONFIG_SH2A
|
||||||
PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb -mno-fdpic -ffreestanding
|
PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb -ffreestanding
|
||||||
else # SH2
|
else # SH2
|
||||||
PLATFORM_CPPFLAGS += -m3e -mb
|
PLATFORM_CPPFLAGS += -m3e -mb
|
||||||
endif
|
endif
|
||||||
|
PLATFORM_CPPFLAGS += $(call cc-option,-mno-fdpic)
|
||||||
|
|
||||||
PLATFORM_RELFLAGS += -ffixed-r13
|
PLATFORM_RELFLAGS += -ffixed-r13
|
||||||
PLATFORM_LDFLAGS += $(ENDIANNESS)
|
PLATFORM_LDFLAGS += $(ENDIANNESS)
|
||||||
|
|
Loading…
Add table
Reference in a new issue