From 1380ead05e51ea9697eb4e64feba705749f8ccb7 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 21 Jan 2024 17:42:28 +0100 Subject: gcc: limit workaround for noMMU elf to m68k architecture --- toolchain/gcc/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'toolchain') 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)' \ -- cgit v1.2.3