1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/2.1.3/glibc-2.1.3-ac_cv_prog_cc_cross.patch Sat Jun 16 18:01:59 2007 +0000
1.3 @@ -0,0 +1,44 @@
1.4 +Lets you work around the canadian cross build error
1.5 +
1.6 +.../gcc-3.4.0-glibc-2.1.3/build-glibc/elf/sln .../gcc-3.4.0-glibc-2.1.3/build-glibc/elf/symlink.list
1.7 +make[1]: *** [install-symbolic-link] Segmentation fault
1.8 +make[1]: Leaving directory `.../gcc-3.4.0-glibc-2.1.3/glibc-2.1.3'
1.9 +make: *** [install] Error 2
1.10 +
1.11 +by setting --host != --build when running glibc-2.1.3/configure
1.12 +instead of hoping that host and build aren't aliases for each other
1.13 +and that running a host program on the build machine doesn't
1.14 +put up a dialog box or accidentally work.
1.15 +
1.16 +(cf. http://sources.redhat.com/ml/crossgcc/2002-08/msg00099.html, in which
1.17 +the run of conftest caused a dialog box to pop up and block the build on cygwin)
1.18 +
1.19 +--- glibc-2.1.3/configure.old 2004-05-26 19:30:45.000000000 -0700
1.20 ++++ glibc-2.1.3/configure 2004-05-26 19:42:29.000000000 -0700
1.21 +@@ -1224,7 +1224,7 @@
1.22 + build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.23 + echo "$ac_t""$build" 1>&6
1.24 +
1.25 +-if test $host != $build; then
1.26 ++if test x$host_alias != x$build_alias; then
1.27 + ac_tool_prefix=${host_alias}-
1.28 + else
1.29 + ac_tool_prefix=
1.30 +@@ -1487,7 +1487,7 @@
1.31 + if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.32 + ac_cv_prog_cc_works=yes
1.33 + # If we can't run a trivial program, we are probably using a cross compiler.
1.34 +- if (./conftest; exit) 2>/dev/null; then
1.35 ++ if test x$host_alias == x$build_alias && (./conftest; exit) 2>/dev/null; then
1.36 + ac_cv_prog_cc_cross=no
1.37 + else
1.38 + ac_cv_prog_cc_cross=yes
1.39 +@@ -1566,7 +1566,7 @@
1.40 + build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.41 + echo "$ac_t""$build" 1>&6
1.42 +
1.43 +-if test $host != $build; then
1.44 ++if test x$host_alias != x$build_alias; then
1.45 + for ac_prog in gcc cc
1.46 + do
1.47 + # Extract the first word of "$ac_prog", so it can be a program name with args.