summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-01-21 17:42:28 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-01-21 17:43:15 +0100
commit1380ead05e51ea9697eb4e64feba705749f8ccb7 (patch)
tree1e024becf1b1760969015b2178a150022a792a5b /toolchain/gcc
parentfc6cbda8bc99732c882bebfbcb70c56a9dbaa6b6 (diff)
gcc: limit workaround for noMMU elf to m68k architecture
Diffstat (limited to 'toolchain/gcc')
-rw-r--r--toolchain/gcc/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 723b4ae5a..175af8aae 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -315,10 +315,12 @@ ifeq ($(ADK_TARGET_CPU_SH_SH4A),y)
(cd ${STAGING_TARGET_DIR}/ && ln -sf . m4a)
endif
endif
+ifeq ($(ADK_TARGET_ARCH_M68K),y)
# Need to get gcc to generate _all_ the multilib variants
# (so both MMU and non-mmu M68k and ColdFire).
$(SED) 's/M68K_MLIB_CPU +=/#M68K_MLIB_CPU +=/' $(WRKBUILD)/gcc/config/m68k/t-m68k
$(SED) 's/&& (FLAGS ~ "FL_MMU")//' $(WRKBUILD)/gcc/config/m68k/t-linux
+endif
$(SED) '/k prot/agcc_cv_libc_provides_ssp=yes' $(WRKBUILD)/gcc/configure
cd $(GCC_BUILD_DIR_INITIAL); \
PATH='$(TARGET_PATH)' \