diff -urN crosstool-0.28-rc37/ChangeLog crosstool-0.28-rc38/ChangeLog --- crosstool-0.28-rc37/ChangeLog 2004-10-06 06:39:12.000000000 +0200 +++ crosstool-0.28-rc38/ChangeLog 2005-02-06 02:52:28.000000000 +0100 @@ -1,7 +1,16 @@ Note: a description of why each patch is needed is embedded *inside* the patch file at the top, so read the patch file for more info. - + +0.28-rc37-macosx: + doc: + * crosstool-howto.html: require gnu install on Mac OS X + + glibc-2.3.3: + * added patches so that it compiles on Mac OS X: + - glibc-2.3.3-allow-old-as-ld.patch + - glibc-2.3.3-no-stddef.h.patch + 0.28-rc37: doc: * crosstool-howto.html now explains how to build statically linked tools diff -urN crosstool-0.28-rc37/doc/crosstool-howto.html crosstool-0.28-rc38/doc/crosstool-howto.html --- crosstool-0.28-rc37/doc/crosstool-howto.html 2004-09-29 07:47:38.000000000 +0200 +++ crosstool-0.28-rc38/doc/crosstool-howto.html 2005-02-06 02:52:28.000000000 +0100 @@ -317,7 +317,7 @@ doesn't accept the --fuzz parameter.

Mac OS X

-You need to install gawk, gnu sed, and wget before you can build crosstool on Mac OS X. +You need to install gawk, gnu sed, gnu install, and wget before you can build crosstool on Mac OS X. The way I installed them was using fink, but DarwinPorts would probably do as well.

diff -urN crosstool-0.28-rc37/patches/glibc-2.3.3/glibc-2.3.3-allow-old-as-ld.patch crosstool-0.28-rc38/patches/glibc-2.3.3/glibc-2.3.3-allow-old-as-ld.patch --- crosstool-0.28-rc37/patches/glibc-2.3.3/glibc-2.3.3-allow-old-as-ld.patch 1970-01-01 01:00:00.000000000 +0100 +++ crosstool-0.28-rc38/patches/glibc-2.3.3/glibc-2.3.3-allow-old-as-ld.patch 2005-02-06 02:52:28.000000000 +0100 @@ -0,0 +1,36 @@ +Mac OS X 10.3.5 does not provide GNU as or GNU ld: +checking version of /usr/libexec/gcc/darwin/ppc/as... 1.38, bad +checking for ld... ld +checking version of ld... v. ?.??, bad +... +checking whether autoconf works... yes +configure: error: +*** These critical programs are missing or too old: as ld +*** Check the INSTALL file for required versions. + +However, the installed versions work, so this patch removes these checks. + +--- glibc-2.3.3/configure.bak 2004-12-04 04:12:01.000000000 +0100 ++++ glibc-2.3.3/configure 2004-12-04 04:12:18.000000000 +0100 +@@ -3732,7 +3732,7 @@ + echo "${ECHO_T}$ac_prog_version" >&6 + fi +-if test $ac_verc_fail = yes; then +- AS=: critic_missing="$critic_missing as" +-fi ++#if test $ac_verc_fail = yes; then ++# AS=: critic_missing="$critic_missing as" ++#fi + + for ac_prog in $LD +@@ -3793,7 +3793,7 @@ + echo "${ECHO_T}$ac_prog_version" >&6 + fi +-if test $ac_verc_fail = yes; then +- LD=: critic_missing="$critic_missing ld" +-fi ++#if test $ac_verc_fail = yes; then ++# LD=: critic_missing="$critic_missing ld" ++#fi + + diff -urN crosstool-0.28-rc37/patches/glibc-2.3.3/glibc-2.3.3-no-stddef.h.patch crosstool-0.28-rc38/patches/glibc-2.3.3/glibc-2.3.3-no-stddef.h.patch --- crosstool-0.28-rc37/patches/glibc-2.3.3/glibc-2.3.3-no-stddef.h.patch 1970-01-01 01:00:00.000000000 +0100 +++ crosstool-0.28-rc38/patches/glibc-2.3.3/glibc-2.3.3-no-stddef.h.patch 2005-02-06 02:55:12.000000000 +0100 @@ -0,0 +1,24 @@ +Fixes: +stdio_lim.hT +In file included from posix/sys/types.h:31, + from include/sys/types.h:1, + from misc/sys/uio.h:24, + from :3: +sysdeps/generic/bits/types.h:31:20: No include path in which to find stddef.h + +On Mac OS X, trying to build the headers failed because +including misc/sys/uio.h includes stddef.h, which does not exist on Mac OS X. + + +--- glibc-2.3.3/Makerules~ Fri Feb 4 12:42:47 2005 ++++ glibc-2.3.3/Makerules Fri Feb 4 12:44:45 2005 +@@ -1252,8 +1252,7 @@ + $(common-objpfx)config.make + $(make-target-directory) + { echo '#include "$(..)posix/bits/posix1_lim.h"'; \ +- echo '#define _LIBC 1'; \ +- echo '#include "$(..)misc/sys/uio.h"'; } | \ ++ echo '#define _LIBC 1'; } | \ + $(CC) -E -dM -MD -MP -MF $(@:st=dT) -MT '$(@:st=h) $(@:st=d)' \ + $(+includes) -xc - -o $(@:st=hT) + sed $(sed-remove-objpfx) $(sed-remove-dotdot) \