diff options
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc-9.2/0019-Ensure-target-gcc-headers-can-be-included.patch | 47 |
1 files changed, 2 insertions, 45 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-9.2/0019-Ensure-target-gcc-headers-can-be-included.patch b/meta/recipes-devtools/gcc/gcc-9.2/0019-Ensure-target-gcc-headers-can-be-included.patch index af0ea5c60a..53f9e99d07 100644 --- a/meta/recipes-devtools/gcc/gcc-9.2/0019-Ensure-target-gcc-headers-can-be-included.patch +++ b/meta/recipes-devtools/gcc/gcc-9.2/0019-Ensure-target-gcc-headers-can-be-included.patch | |||
| @@ -22,8 +22,6 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 22 | gcc/gcc.c | 7 ------- | 22 | gcc/gcc.c | 7 ------- |
| 23 | 4 files changed, 15 insertions(+), 7 deletions(-) | 23 | 4 files changed, 15 insertions(+), 7 deletions(-) |
| 24 | 24 | ||
| 25 | diff --git a/gcc/Makefile.in b/gcc/Makefile.in | ||
| 26 | index 0064a282488..98d1488171f 100644 | ||
| 27 | --- a/gcc/Makefile.in | 25 | --- a/gcc/Makefile.in |
| 28 | +++ b/gcc/Makefile.in | 26 | +++ b/gcc/Makefile.in |
| 29 | @@ -618,6 +618,7 @@ libexecdir = @libexecdir@ | 27 | @@ -618,6 +618,7 @@ libexecdir = @libexecdir@ |
| @@ -34,7 +32,7 @@ index 0064a282488..98d1488171f 100644 | |||
| 34 | # Directory in which the compiler finds executables | 32 | # Directory in which the compiler finds executables |
| 35 | libexecsubdir = $(libexecdir)/gcc/$(real_target_noncanonical)/$(version)$(accel_dir_suffix) | 33 | libexecsubdir = $(libexecdir)/gcc/$(real_target_noncanonical)/$(version)$(accel_dir_suffix) |
| 36 | # Directory in which all plugin resources are installed | 34 | # Directory in which all plugin resources are installed |
| 37 | @@ -2866,6 +2867,7 @@ CFLAGS-intl.o += -DLOCALEDIR=\"$(localedir)\" | 35 | @@ -2866,6 +2867,7 @@ CFLAGS-intl.o += -DLOCALEDIR=\"$(localed |
| 38 | 36 | ||
| 39 | PREPROCESSOR_DEFINES = \ | 37 | PREPROCESSOR_DEFINES = \ |
| 40 | -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ | 38 | -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ |
| @@ -42,11 +40,9 @@ index 0064a282488..98d1488171f 100644 | |||
| 42 | -DFIXED_INCLUDE_DIR=\"$(libsubdir)/include-fixed\" \ | 40 | -DFIXED_INCLUDE_DIR=\"$(libsubdir)/include-fixed\" \ |
| 43 | -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ | 41 | -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ |
| 44 | -DGPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT=$(gcc_gxx_include_dir_add_sysroot) \ | 42 | -DGPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT=$(gcc_gxx_include_dir_add_sysroot) \ |
| 45 | diff --git a/gcc/cppdefault.c b/gcc/cppdefault.c | ||
| 46 | index c4796385643..980e2bd47a7 100644 | ||
| 47 | --- a/gcc/cppdefault.c | 43 | --- a/gcc/cppdefault.c |
| 48 | +++ b/gcc/cppdefault.c | 44 | +++ b/gcc/cppdefault.c |
| 49 | @@ -59,6 +59,10 @@ const struct default_include cpp_include_defaults[] | 45 | @@ -59,6 +59,10 @@ const struct default_include cpp_include |
| 50 | /* This is the dir for gcc's private headers. */ | 46 | /* This is the dir for gcc's private headers. */ |
| 51 | { GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 }, | 47 | { GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 }, |
| 52 | #endif | 48 | #endif |
| @@ -57,42 +53,3 @@ index c4796385643..980e2bd47a7 100644 | |||
| 57 | #ifdef LOCAL_INCLUDE_DIR | 53 | #ifdef LOCAL_INCLUDE_DIR |
| 58 | /* /usr/local/include comes before the fixincluded header files. */ | 54 | /* /usr/local/include comes before the fixincluded header files. */ |
| 59 | { LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 2 }, | 55 | { LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 2 }, |
| 60 | diff --git a/gcc/defaults.h b/gcc/defaults.h | ||
| 61 | index b7534256119..41ca579b267 100644 | ||
| 62 | --- a/gcc/defaults.h | ||
| 63 | +++ b/gcc/defaults.h | ||
| 64 | @@ -1459,4 +1459,13 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see | ||
| 65 | #define DWARF_GNAT_ENCODINGS_DEFAULT DWARF_GNAT_ENCODINGS_GDB | ||
| 66 | #endif | ||
| 67 | |||
| 68 | +/* Default prefixes to attach to command names. */ | ||
| 69 | + | ||
| 70 | +#ifndef STANDARD_STARTFILE_PREFIX_1 | ||
| 71 | +#define STANDARD_STARTFILE_PREFIX_1 "/lib/" | ||
| 72 | +#endif | ||
| 73 | +#ifndef STANDARD_STARTFILE_PREFIX_2 | ||
| 74 | +#define STANDARD_STARTFILE_PREFIX_2 "/usr/lib/" | ||
| 75 | +#endif | ||
| 76 | + | ||
| 77 | #endif /* ! GCC_DEFAULTS_H */ | ||
| 78 | diff --git a/gcc/gcc.c b/gcc/gcc.c | ||
| 79 | index 4e7c45b268c..1a3704b2763 100644 | ||
| 80 | --- a/gcc/gcc.c | ||
| 81 | +++ b/gcc/gcc.c | ||
| 82 | @@ -1470,13 +1470,6 @@ static const char *gcc_libexec_prefix; | ||
| 83 | |||
| 84 | /* Default prefixes to attach to command names. */ | ||
| 85 | |||
| 86 | -#ifndef STANDARD_STARTFILE_PREFIX_1 | ||
| 87 | -#define STANDARD_STARTFILE_PREFIX_1 "/lib/" | ||
| 88 | -#endif | ||
| 89 | -#ifndef STANDARD_STARTFILE_PREFIX_2 | ||
| 90 | -#define STANDARD_STARTFILE_PREFIX_2 "/usr/lib/" | ||
| 91 | -#endif | ||
| 92 | - | ||
| 93 | #ifdef CROSS_DIRECTORY_STRUCTURE /* Don't use these prefixes for a cross compiler. */ | ||
| 94 | #undef MD_EXEC_PREFIX | ||
| 95 | #undef MD_STARTFILE_PREFIX | ||
| 96 | -- | ||
| 97 | 2.22.1 | ||
| 98 | |||
