From b4eb6056d7d42857504ea82d74537e2a607508c7 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Mon, 30 Aug 2010 16:07:21 +0000 Subject: [PATCH] Part of #3298: * applied patch by VinDuv that allows to build the legacy buildtools on Mac OS X - thanks! git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@38452 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- legacy/gcc/Makefile.in | 6 ++++-- legacy/gcc/gcc/configure | 4 ++++ legacy/gcc/gcc/configure.in | 6 ++++++ legacy/gcc/gcc/config/i386/i386.c | 2 ++ 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/legacy/gcc/Makefile.in b/legacy/gcc/Makefile.in index 7af1784..2196e4c 100644 --- a/legacy/gcc/Makefile.in +++ b/legacy/gcc/Makefile.in @@ -141,9 +141,9 @@ then echo $$r/m4/m4 ; \ else echo ${DEFAULT_M4} ; fi` -MAKEINFO = `if [ -f $$r/texinfo/makeinfo/Makefile ] ; \ - then echo $$r/texinfo/makeinfo/makeinfo ; \ - else echo makeinfo ; fi` +MAKEINFO = `if [ -x /usr/bin/makeinfo ] ; \ + then echo makeinfo ; \ + else echo $$r/texinfo/makeinfo/makeinfo ; fi` # This just becomes part of the MAKEINFO definition passed down to # sub-makes. It lets flags be given on the command line while still diff --git a/legacy/gcc/gcc/configure b/legacy/gcc/gcc/configure index e93efb2..4ef4b59 100755 --- a/legacy/gcc/gcc/configure +++ b/legacy/gcc/gcc/configure @@ -3597,6 +3597,10 @@ tm_file=i386/freebsd.h tmake_file=t-freebsd ;; + i[34567]86-*-darwin*) + tm_file=i386/freebsd.h + tmake_file=t-freebsd + ;; i[34567]86-*-netbsd*) tm_file=i386/netbsd.h tmake_file=t-netbsd diff --git a/legacy/gcc/gcc/configure.in b/legacy/gcc/gcc/configure.in index 12eaf85..1e47a03 100644 --- a/legacy/gcc/gcc/configure.in +++ b/legacy/gcc/gcc/configure.in @@ -1206,6 +1206,12 @@ tmake_file=t-freebsd ;; changequote(,)dnl + i[34567]86-*-darwin*) +changequote([,])dnl + tm_file=i386/freebsd.h + tmake_file=t-freebsd + ;; +changequote(,)dnl i[34567]86-*-netbsd*) changequote([,])dnl tm_file=i386/netbsd.h diff --git a/legacy/gcc/gcc/config/i386/i386.c b/legacy/gcc/gcc/config/i386/i386.c index 0333b19..b7d7170 100644 --- a/legacy/gcc/gcc/config/i386/i386.c +++ b/legacy/gcc/gcc/config/i386/i386.c @@ -139,7 +139,9 @@ #define AT_BP(mode) (gen_rtx_MEM ((mode), frame_pointer_rtx)) extern FILE *asm_out_file; +#ifndef __APPLE__ extern char *strcat (); +#endif static void ix86_epilogue PROTO((int)); static void ix86_prologue PROTO((int)); -- gitore 0.2.2