patches/gcc/4.4.4/130-cross-compile.patch
branch1.7
changeset 1949 838fb48dcd00
parent 1948 d341be24dc68
child 1951 583c6e1510f5
     1.1 --- a/patches/gcc/4.4.4/130-cross-compile.patch	Sun May 16 19:41:53 2010 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,41 +0,0 @@
     1.4 -diff -durN gcc-4.4.0.orig/gcc/configure gcc-4.4.0/gcc/configure
     1.5 -
     1.6 -diff -durN gcc-4.4.4.orig/gcc/configure gcc-4.4.4/gcc/configure
     1.7 ---- gcc-4.4.4.orig/gcc/configure	2009-10-19 14:15:27.000000000 +0200
     1.8 -+++ gcc-4.4.4/gcc/configure	2010-05-16 19:11:00.000000000 +0200
     1.9 -@@ -13997,7 +13997,7 @@
    1.10 - 	    | powerpc*-*-*,powerpc64*-*-*)
    1.11 - 		CROSS="$CROSS -DNATIVE_CROSS" ;;
    1.12 - 	esac
    1.13 --elif test "x$TARGET_SYSTEM_ROOT" != x; then
    1.14 -+elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then
    1.15 -         SYSTEM_HEADER_DIR=$build_system_header_dir
    1.16 - fi
    1.17 - 
    1.18 -diff -durN gcc-4.4.4.orig/gcc/configure.ac gcc-4.4.4/gcc/configure.ac
    1.19 ---- gcc-4.4.4.orig/gcc/configure.ac	2009-10-19 14:15:27.000000000 +0200
    1.20 -+++ gcc-4.4.4/gcc/configure.ac	2010-05-16 19:11:00.000000000 +0200
    1.21 -@@ -1720,7 +1720,7 @@
    1.22 - 	    | powerpc*-*-*,powerpc64*-*-*)
    1.23 - 		CROSS="$CROSS -DNATIVE_CROSS" ;;
    1.24 - 	esac
    1.25 --elif test "x$TARGET_SYSTEM_ROOT" != x; then
    1.26 -+elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then
    1.27 -         SYSTEM_HEADER_DIR=$build_system_header_dir 
    1.28 - fi
    1.29 - 
    1.30 -diff -durN gcc-4.4.4.orig/gcc/unwind-dw2.c gcc-4.4.4/gcc/unwind-dw2.c
    1.31 ---- gcc-4.4.4.orig/gcc/unwind-dw2.c	2010-01-20 09:39:18.000000000 +0100
    1.32 -+++ gcc-4.4.4/gcc/unwind-dw2.c	2010-05-16 19:11:00.000000000 +0200
    1.33 -@@ -329,9 +329,11 @@
    1.34 - }
    1.35 - #endif
    1.36 - 
    1.37 -+#ifndef inhibit_libc
    1.38 - #ifdef MD_UNWIND_SUPPORT
    1.39 - #include MD_UNWIND_SUPPORT
    1.40 - #endif
    1.41 -+#endif
    1.42 - 
    1.43 - /* Extract any interesting information from the CIE for the translation
    1.44 -    unit F belongs to.  Return a pointer to the byte after the augmentation,