http://sourceware.org/ml/crossgcc/2005-03/msg00071.html Message-Id: <320eba3a9987a7c7944c6ddb1ebb39bc@gmx.li> From: Martin Schaffner Subject: Re: [Patch] crosstool w/ glibc-2.3.3 on Mac OS X Date: Sat, 12 Mar 2005 11:17:01 +0100 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 Mac OS X versions of as and ld work fine, so we remove the checks if --disable-sanity-checks was passed to the configure script diff -ur g/configure glibc-2.3.3/configure --- g/configure Tue Mar 8 21:55:02 2005 +++ glibc-2.3.3/configure Tue Mar 8 21:50:41 2005 @@ -3673,6 +3673,7 @@ gnu_ld=$libc_cv_prog_ld_gnu +if test x"$enable_sanity" = xyes; then # Accept binutils 2.13 or newer. for ac_prog in $AS do @@ -3796,6 +3797,7 @@ LD=: critic_missing="$critic_missing ld" fi +fi # We need the physical current working directory. We cannot use the # "pwd -P" shell builtin since that's not portable. Instead we try to diff -ur g/configure.in glibc-2.3.3/configure.in --- g/configure.in Tue Mar 8 21:54:56 2005 +++ glibc-2.3.3/configure.in Tue Mar 8 21:54:47 2005 @@ -681,6 +681,7 @@ LIBC_PROG_BINUTILS AC_SUBST(MIG)dnl Needed by sysdeps/mach/configure.in +if test x"$enable_sanity" = xyes; then # Accept binutils 2.13 or newer. AC_CHECK_PROG_VER(AS, $AS, --version, [GNU assembler.* \([0-9]*\.[0-9.]*\)], @@ -688,6 +689,7 @@ AC_CHECK_PROG_VER(LD, $LD, --version, [GNU ld.* \([0-9][0-9]*\.[0-9.]*\)], [2.1[3-9]*], LD=: critic_missing="$critic_missing ld") +fi # We need the physical current working directory. We cannot use the # "pwd -P" shell builtin since that's not portable. Instead we try to