summaryrefslogtreecommitdiff
path: root/toolchain/gcc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/gcc/Makefile')
-rw-r--r--toolchain/gcc/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index ba00225f5..6af157934 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -140,6 +140,10 @@ GCC_CONFOPTS+= --with-endian=little
else
GCC_CONFOPTS+= --with-endian=big
endif
+ifeq ($(ADK_TARGET_CPU_SH_J2),y)
+GCC_CONFOPTS+= --enable-fdpic
+GCC_FINAL_CONFOPTS+= --with-multilib-list=mj2
+endif
ifeq ($(ADK_TARGET_CPU_SH_SH2),y)
GCC_FINAL_CONFOPTS+= --with-multilib-list=m2
endif
@@ -229,6 +233,9 @@ endif
(cd $(TOOLCHAIN_DIR)/usr/$(GNU_TARGET_NAME); \
ln -s ../$(STAGING_HOST2TARGET)/usr/lib lib)
ifeq ($(ADK_TARGET_ARCH_SH),y)
+ifeq ($(ADK_TARGET_CPU_SH_J2),y)
+ (cd ${STAGING_TARGET_DIR}/ && ln -sf . mj2)
+endif
ifeq ($(ADK_TARGET_CPU_SH_SH3),y)
(cd ${STAGING_TARGET_DIR}/ && ln -sf . m3)
endif