summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak10
1 files changed, 9 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index a3cd1f2ba..3b162addf 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -146,7 +146,15 @@ ifeq ($(strip $(TARGET_ARCH)),sh)
CPU_CFLAGS-$(CONFIG_SH2)+="-m2"
CPU_CFLAGS-$(CONFIG_SH3)+="-m3"
CPU_CFLAGS-$(CONFIG_SH4)+="-m4"
- CPU_CFLAGS-$(CONFIG_SH5)+="-m5"
+endif
+
+ifeq ($(strip $(TARGET_ARCH)),sh64)
+ OPTIMIZATION+=-fstrict-aliasing
+ CPU_LDFLAGS-$(ARCH_LITTLE_ENDIAN):="-EL"
+ CPU_LDFLAGS-$(ARCH_BIG_ENDIAN):="-EB"
+ CPU_CFLAGS-$(ARCH_LITTLE_ENDIAN):="-ml"
+ CPU_CFLAGS-$(ARCH_BIG_ENDIAN):="-mb"
+ CPU_CFLAGS-$(CONFIG_SH5)+="-m5-32media"
endif
ifeq ($(strip $(TARGET_ARCH)),h8300)