thomas@1461: Original patch from: ../4.3.2/130-cross-compile.patch thomas@1461: thomas@1461: -= BEGIN original header =- thomas@1461: Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.1/gentoo/08_all_gcc-4.1-cross-compile.patch thomas@1461: Some notes on the 'bootstrap with or without libc headers' debate: thomas@1461: http://linuxfromscratch.org/pipermail/lfs-dev/2005-July/052409.html thomas@1461: http://gcc.gnu.org/ml/gcc/2005-07/msg01195.html thomas@1461: thomas@1461: -= END original header =- thomas@1461: thomas@1461: diff -durN gcc-4.3.3.orig/gcc/configure gcc-4.3.3/gcc/configure thomas@1461: --- gcc-4.3.3.orig/gcc/configure 2008-08-01 11:51:03.000000000 +0200 thomas@1461: +++ gcc-4.3.3/gcc/configure 2009-01-27 22:19:16.000000000 +0100 thomas@1461: @@ -13442,7 +13442,7 @@ thomas@1461: | powerpc*-*-*,powerpc64*-*-*) thomas@1461: CROSS="$CROSS -DNATIVE_CROSS" ;; thomas@1461: esac thomas@1461: -elif test "x$TARGET_SYSTEM_ROOT" != x; then thomas@1461: +elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then thomas@1461: SYSTEM_HEADER_DIR=$build_system_header_dir thomas@1461: fi thomas@1461: thomas@1461: diff -durN gcc-4.3.3.orig/gcc/configure.ac gcc-4.3.3/gcc/configure.ac thomas@1461: --- gcc-4.3.3.orig/gcc/configure.ac 2008-08-01 11:51:03.000000000 +0200 thomas@1461: +++ gcc-4.3.3/gcc/configure.ac 2009-01-27 22:19:16.000000000 +0100 thomas@1461: @@ -1749,7 +1749,7 @@ thomas@1461: | powerpc*-*-*,powerpc64*-*-*) thomas@1461: CROSS="$CROSS -DNATIVE_CROSS" ;; thomas@1461: esac thomas@1461: -elif test "x$TARGET_SYSTEM_ROOT" != x; then thomas@1461: +elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then thomas@1461: SYSTEM_HEADER_DIR=$build_system_header_dir thomas@1461: fi thomas@1461: thomas@1461: diff -durN gcc-4.3.3.orig/gcc/unwind-dw2.c gcc-4.3.3/gcc/unwind-dw2.c thomas@1461: --- gcc-4.3.3.orig/gcc/unwind-dw2.c 2008-09-25 00:44:28.000000000 +0200 thomas@1461: +++ gcc-4.3.3/gcc/unwind-dw2.c 2009-01-27 22:19:16.000000000 +0100 thomas@1461: @@ -334,9 +334,11 @@ thomas@1461: } thomas@1461: #endif thomas@1461: thomas@1461: +#ifndef inhibit_libc thomas@1461: #ifdef MD_UNWIND_SUPPORT thomas@1461: #include MD_UNWIND_SUPPORT thomas@1461: #endif thomas@1461: +#endif thomas@1461: thomas@1461: /* Extract any interesting information from the CIE for the translation thomas@1461: unit F belongs to. Return a pointer to the byte after the augmentation,