diff options
10 files changed, 31 insertions, 8 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1.inc b/meta/recipes-devtools/gcc/gcc-4.5.1.inc index 6c600c1896..3c4902e9e7 100644 --- a/meta/recipes-devtools/gcc/gcc-4.5.1.inc +++ b/meta/recipes-devtools/gcc/gcc-4.5.1.inc | |||
@@ -56,6 +56,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ | |||
56 | file://disable_relax_pic_calls_flag.patch \ | 56 | file://disable_relax_pic_calls_flag.patch \ |
57 | file://gcc-poison-parameters.patch \ | 57 | file://gcc-poison-parameters.patch \ |
58 | file://GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch \ | 58 | file://GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch \ |
59 | file://COLLECT_GCC_OPTIONS.patch \ | ||
59 | " | 60 | " |
60 | 61 | ||
61 | SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch;patch=1 " | 62 | SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch;patch=1 " |
diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch b/meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch new file mode 100644 index 0000000000..3e3dec7d39 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.5.1/COLLECT_GCC_OPTIONS.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | #This patck added --sysroot into COLLECT_GCC_OPTIONS which is used to | ||
2 | #invoke collect2. | ||
3 | |||
4 | diff -ruN gcc-4.5.1.orig/gcc/gcc.c gcc-4.5.1/gcc/gcc.c | ||
5 | --- gcc-4.5.1.orig/gcc/gcc.c 2011-03-09 16:43:39.127752586 +0800 | ||
6 | +++ gcc-4.5.1/gcc/gcc.c 2011-03-09 16:47:15.894929459 +0800 | ||
7 | @@ -4667,6 +4667,15 @@ | ||
8 | sizeof ("COLLECT_GCC_OPTIONS=") - 1); | ||
9 | |||
10 | first_time = TRUE; | ||
11 | +#ifdef HAVE_LD_SYSROOT | ||
12 | + if (target_system_root_changed && target_system_root) | ||
13 | + { | ||
14 | + obstack_grow (&collect_obstack, "'--sysroot=", sizeof("'--sysroot=")-1); | ||
15 | + obstack_grow (&collect_obstack, target_system_root,strlen(target_system_root)); | ||
16 | + obstack_grow (&collect_obstack, "'", 1); | ||
17 | + first_time = FALSE; | ||
18 | + } | ||
19 | +#endif | ||
20 | for (i = 0; (int) i < n_switches; i++) | ||
21 | { | ||
22 | const char *const *args; | ||
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb index 3eea4bcafe..92708d44e7 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb | |||
@@ -5,7 +5,7 @@ require gcc-cross-canadian.inc | |||
5 | require gcc-configure-sdk.inc | 5 | require gcc-configure-sdk.inc |
6 | require gcc-package-sdk.inc | 6 | require gcc-package-sdk.inc |
7 | 7 | ||
8 | PR = "r3" | 8 | PR = "r4" |
9 | 9 | ||
10 | DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk" | 10 | DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk" |
11 | RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk" | 11 | RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk" |
diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb index 38e0964fed..081b7d60fb 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb +++ b/meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb | |||
@@ -1,5 +1,5 @@ | |||
1 | require gcc-cross_${PV}.bb | 1 | require gcc-cross_${PV}.bb |
2 | require gcc-cross-initial.inc | 2 | require gcc-cross-initial.inc |
3 | 3 | ||
4 | PR = "r3" | 4 | PR = "r4" |
5 | 5 | ||
diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb index 9a30cb5119..a8473b0ebe 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | require gcc-cross_${PV}.bb | 1 | require gcc-cross_${PV}.bb |
2 | require gcc-cross-intermediate.inc | 2 | require gcc-cross-intermediate.inc |
3 | PR = "r4" | 3 | PR = "r5" |
4 | 4 | ||
diff --git a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb index 78bb05a474..af6daf41bd 100644 --- a/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb +++ b/meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | PR = "r3" | 1 | PR = "r4" |
2 | 2 | ||
3 | require gcc-${PV}.inc | 3 | require gcc-${PV}.inc |
4 | require gcc-cross4.inc | 4 | require gcc-cross4.inc |
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb index fec53b931c..970824805f 100644 --- a/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb +++ b/meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | require gcc-cross-initial_${PV}.bb | 1 | require gcc-cross-initial_${PV}.bb |
2 | require gcc-crosssdk-initial.inc | 2 | require gcc-crosssdk-initial.inc |
3 | 3 | ||
4 | PR = "r3" | 4 | PR = "r4" |
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb index 161d870e63..d235969591 100644 --- a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb +++ b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | require gcc-cross-intermediate_${PV}.bb | 1 | require gcc-cross-intermediate_${PV}.bb |
2 | require gcc-crosssdk-intermediate.inc | 2 | require gcc-crosssdk-intermediate.inc |
3 | 3 | ||
4 | PR = "r3" | 4 | PR = "r4" |
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb index 70690881aa..bae238970a 100644 --- a/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb +++ b/meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | require gcc-cross_${PV}.bb | 1 | require gcc-cross_${PV}.bb |
2 | require gcc-crosssdk.inc | 2 | require gcc-crosssdk.inc |
3 | 3 | ||
4 | PR = "r3" | 4 | PR = "r4" |
diff --git a/meta/recipes-devtools/gcc/gcc_4.5.1.bb b/meta/recipes-devtools/gcc/gcc_4.5.1.bb index 25e455c05a..a193b38559 100644 --- a/meta/recipes-devtools/gcc/gcc_4.5.1.bb +++ b/meta/recipes-devtools/gcc/gcc_4.5.1.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | PR = "r3" | 1 | PR = "r4" |
2 | require gcc-${PV}.inc | 2 | require gcc-${PV}.inc |
3 | require gcc-configure-target.inc | 3 | require gcc-configure-target.inc |
4 | require gcc-package-target.inc | 4 | require gcc-package-target.inc |