1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/2.3.2/glibc-2.3.2-cross-2.patch Tue May 08 12:57:52 2007 +0000
1.3 @@ -0,0 +1,18 @@
1.4 +When configuring canadian cross toolchain and you're unlucky enough to be
1.5 +using a build and host that are different, but that config.sub thinks mean the same thing,
1.6 +you might end up without BUILD_CC being defined as 'cc' or 'gcc',
1.7 +which might cause $CC to be used instead, which would be wrong...
1.8 +
1.9 +Dan Kegel
1.10 +
1.11 +--- glibc-2.3.2/configure.old 2004-05-26 19:46:43.000000000 -0700
1.12 ++++ glibc-2.3.2/configure 2004-05-26 19:52:47.000000000 -0700
1.13 +@@ -3323,7 +3323,7 @@
1.14 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.15 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16 +
1.17 +-if test $host != $build; then
1.18 ++if test "$cross_compiling" = yes; then
1.19 + for ac_prog in gcc cc
1.20 + do
1.21 + # Extract the first word of "$ac_prog", so it can be a program name with args.