From d4570b422e46cc8efbf9c51d112b9afb69b993df Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 24 Dec 2010 12:43:10 +0000 Subject: A motley selection of changes, which ultimately result in a toolchain that produces binaries: * Makefile: Change to a two-stage build and build+install clib2 between stages Other, associated changes to reflect additional patches etc * recipes/files/gcc: Contents moved to recipes/files/gcc/gcc Various changes to the target configuration to reflect use of clib2 * recipes/files/ndk: Additional header files for the NDK to permit clib2 to build * recipes/files/clib2: Add sys/wait.h to clib2, and stub out wait(), vfork(), and pipe() for the benefit of libiberty * recipes/patches/gcc/(config.host.p,config.gcc.p): Renamed to gcc.\1 * recipes/patches/gcc/libgcc.config.host.p: Make libgcc aware of our target triple * recipes/patches/binutils/gas.app.c.p: Backport a 5-year old fix that prevents the GAS lexer dropping input on the floor * recipes/patches/ndk/ndk.inline.intuition.h.p: Hack around inline function needing access to a variable from the place it was inlined * recipes/patches/clib2/clib2.modern_gcc.p: Fix up clib2 to compile with modern GCC * recipes/patches/clib2/clib2.include.unistd.h.p: Export definitions of vfork() and pipe() * recipes/patches/clib2/clib2.include.fcntl.h.p: Define FD_CLOEXEC -- the clib2 fcntl() implementation will ignore F_GETFD/F_SETFD anyway * recipes/patches/clib2/clib2.GNUmakefile.68k.p: Reflect our use of a full target triple in the toolchain settings Add stubs.c to build Do not attempt to build resident/resident32 library variants svn path=/toolchains/; revision=11120 --- .../recipes/files/gcc/gcc/config/m68k/t-amigaos | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 m68k-unknown-amigaos/recipes/files/gcc/gcc/config/m68k/t-amigaos (limited to 'm68k-unknown-amigaos/recipes/files/gcc/gcc/config/m68k/t-amigaos') diff --git a/m68k-unknown-amigaos/recipes/files/gcc/gcc/config/m68k/t-amigaos b/m68k-unknown-amigaos/recipes/files/gcc/gcc/config/m68k/t-amigaos new file mode 100644 index 0000000..3b2d16f --- /dev/null +++ b/m68k-unknown-amigaos/recipes/files/gcc/gcc/config/m68k/t-amigaos @@ -0,0 +1,36 @@ +# Makefile fragment for AmigaOS target. + +# Extra object file linked to the cc1* executables. +amigaos.o: $(srcdir)/config/m68k/amigaos.c $(CONFIG_H) + $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION) + +# Additional target dependent options for compiling libgcc.a. This just +# ensures that we don't compile libgcc* with anything other than a +# fixed stack. + +#TARGET_LIBGCC2_CFLAGS = -mfixedstack + +# Support for building multiple version of libgcc. + +LIBGCC_MULTI = .; \ + libb;@fbaserel \ + libm020;@m68020 \ + libb/libm020;@fbaserel@m68020 \ + libb32/libm020;@fbaserel32@m68020 + +### begin-GG-local: dynamic libraries +# Extra objects that get compiled and linked to collect2 + +#EXTRA_COLLECT2_OBJS = amigacollect2.o + +# Build supplimentary AmigaOS target support file for collect2 +#amigacollect2.o: amigacollect2.c +# $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ +# -DA2IXDIR_PREFIX=\"$(prefix)/share/a2ixlibrary\" $< $(OUTPUT_OPTION) +### end-GG-local + +# Prevent fixincludes clobbering our limits.h +LIMITS_H_TEST = true + +# Prevent installation of GCC's limits.h +INSTALL_LIMITS_H = false -- cgit v1.2.3