From 786e61eee01563dbf2bd3b3a6ad62cceb37df21c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 14 Dec 2016 16:27:07 +0100 Subject: allow to build sh2 flat toolchain --- toolchain/gcc/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'toolchain/gcc/Makefile') diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 6af157934..e8316ac2a 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -68,7 +68,7 @@ GCC_FINAL_CONFOPTS:= --disable-tls --disable-threads --disable-libatomic GCC_TLS_CONFOPTS:= --disable-tls endif -ifeq ($(ADK_TARGET_BINFMT_FLAT)$(ADK_TARGET_USE_STATIC_LIBS_ONLY)$(ADK_TARGET_BINFMT_DSBT),y) +ifeq ($(ADK_TARGET_USE_STATIC_LIBS_ONLY),y) GCC_FINAL_CONFOPTS+= --disable-shared else GCC_FINAL_CONFOPTS+= --enable-shared --enable-cxx-flags='-fPIC' @@ -141,7 +141,9 @@ else GCC_CONFOPTS+= --with-endian=big endif ifeq ($(ADK_TARGET_CPU_SH_J2),y) +ifeq ($(ADK_TARGET_BINFMT_FDPIC),y) GCC_CONFOPTS+= --enable-fdpic +endif GCC_FINAL_CONFOPTS+= --with-multilib-list=mj2 endif ifeq ($(ADK_TARGET_CPU_SH_SH2),y) -- cgit v1.2.3