diff options
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.5.1.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.5.1/use-defaults.h-and-t-oe-in-B.patch | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1.inc b/meta/recipes-devtools/gcc/gcc-4.5.1.inc index b7d0265d3a..76f983740e 100644 --- a/meta/recipes-devtools/gcc/gcc-4.5.1.inc +++ b/meta/recipes-devtools/gcc/gcc-4.5.1.inc | |||
@@ -57,6 +57,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ | |||
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 | file://COLLECT_GCC_OPTIONS.patch \ |
60 | file://use-defaults.h-and-t-oe-in-B.patch \ | ||
60 | " | 61 | " |
61 | 62 | ||
62 | SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch;patch=1 " | 63 | SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch;patch=1 " |
diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1/use-defaults.h-and-t-oe-in-B.patch b/meta/recipes-devtools/gcc/gcc-4.5.1/use-defaults.h-and-t-oe-in-B.patch new file mode 100644 index 0000000000..c93e6caa06 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.5.1/use-defaults.h-and-t-oe-in-B.patch | |||
@@ -0,0 +1,57 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Use the defaults.h in ${B} instead of ${S}, and t-oe in ${B}, so that | ||
4 | the source can be shared between gcc-cross-initial, | ||
5 | gcc-cross-intermediate, gcc-cross, gcc-runtime, and also the sdk build. | ||
6 | --- | ||
7 | gcc/Makefile.in | 2 +- | ||
8 | gcc/configure | 4 ++-- | ||
9 | gcc/configure.ac | 4 ++-- | ||
10 | 3 files changed, 5 insertions(+), 5 deletions(-) | ||
11 | |||
12 | diff --git a/gcc/Makefile.in b/gcc/Makefile.in | ||
13 | index d91f93a..03ee2bd 100644 | ||
14 | --- a/gcc/Makefile.in | ||
15 | +++ b/gcc/Makefile.in | ||
16 | @@ -461,7 +461,7 @@ LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h ] | ||
17 | TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@ | ||
18 | |||
19 | xmake_file=@xmake_file@ | ||
20 | -tmake_file=@tmake_file@ | ||
21 | +tmake_file=@tmake_file@ ./t-oe | ||
22 | TM_ENDIAN_CONFIG=@TM_ENDIAN_CONFIG@ | ||
23 | TM_MULTILIB_CONFIG=@TM_MULTILIB_CONFIG@ | ||
24 | TM_MULTILIB_EXCEPTIONS_CONFIG=@TM_MULTILIB_EXCEPTIONS_CONFIG@ | ||
25 | diff --git a/gcc/configure b/gcc/configure | ||
26 | index f440fa2..dafb0c1 100755 | ||
27 | --- a/gcc/configure | ||
28 | +++ b/gcc/configure | ||
29 | @@ -10838,8 +10838,8 @@ for f in $tm_file; do | ||
30 | tm_include_list="${tm_include_list} $f" | ||
31 | ;; | ||
32 | defaults.h ) | ||
33 | - tm_file_list="${tm_file_list} \$(srcdir)/$f" | ||
34 | - tm_include_list="${tm_include_list} $f" | ||
35 | + tm_file_list="${tm_file_list} ./$f" | ||
36 | + tm_include_list="${tm_include_list} ./$f" | ||
37 | ;; | ||
38 | * ) | ||
39 | tm_file_list="${tm_file_list} \$(srcdir)/config/$f" | ||
40 | diff --git a/gcc/configure.ac b/gcc/configure.ac | ||
41 | index d003091..ba422e6 100644 | ||
42 | --- a/gcc/configure.ac | ||
43 | +++ b/gcc/configure.ac | ||
44 | @@ -1652,8 +1652,8 @@ for f in $tm_file; do | ||
45 | tm_include_list="${tm_include_list} $f" | ||
46 | ;; | ||
47 | defaults.h ) | ||
48 | - tm_file_list="${tm_file_list} \$(srcdir)/$f" | ||
49 | - tm_include_list="${tm_include_list} $f" | ||
50 | + tm_file_list="${tm_file_list} ./$f" | ||
51 | + tm_include_list="${tm_include_list} ./$f" | ||
52 | ;; | ||
53 | * ) | ||
54 | tm_file_list="${tm_file_list} \$(srcdir)/config/$f" | ||
55 | -- | ||
56 | 1.7.1 | ||
57 | |||