From 398f1b156bb58ee096ab64c1d8fdeb295833e5d5 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 20 Jun 2002 14:35:19 +0000 Subject: Add support for doing the mmu-less thing -Erik --- extra/gcc-uClibc/Makefile | 5 +++++ extra/gcc-uClibc/gcc-uClibc.c | 3 +++ 2 files changed, 8 insertions(+) (limited to 'extra') diff --git a/extra/gcc-uClibc/Makefile b/extra/gcc-uClibc/Makefile index faf4e5c75..62ab6c8ee 100644 --- a/extra/gcc-uClibc/Makefile +++ b/extra/gcc-uClibc/Makefile @@ -27,6 +27,11 @@ gcc-uClibc.h: $(TOPDIR)/Config @echo "#define TARGET_ARCH " \"$(TARGET_ARCH)\" >> gcc-uClibc.h @echo "#define DYNAMIC_LINKER " \"$(DYNAMIC_LINKER)\" >> gcc-uClibc.h @echo "#define BUILD_DYNAMIC_LINKER " \"$(UCLIBC_DIR)/lib/$(UCLIBC_LDSO)\" >> gcc-uClibc.h +ifeq ($(strip $(HAS_MMU)),true) + @echo "#define HAS_MMU 1" >> gcc-uClibc.h +else + @echo "#undef HAS_MMU" >> gcc-uClibc.h +endif gcc-uClibc: gcc-uClibc.h gcc-uClibc.c gcc -Wall -O2 -Wl,-s gcc-uClibc.c -o $(TARGET_ARCH)-uclibc-gcc diff --git a/extra/gcc-uClibc/gcc-uClibc.c b/extra/gcc-uClibc/gcc-uClibc.c index 16fdd2f71..a16349626 100644 --- a/extra/gcc-uClibc/gcc-uClibc.c +++ b/extra/gcc-uClibc/gcc-uClibc.c @@ -322,6 +322,9 @@ int main(int argc, char **argv) } if (linking && source_count) { +#ifndef HAS_MMU + gcc_argv[i++] = "-Wl,-elf2flt"; +#endif if (use_stdlib) { gcc_argv[i++] = nostdlib; } -- cgit v1.2.3