diff options
4 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.9.inc b/meta/recipes-devtools/gcc/gcc-4.9.inc index ee31f0b620..9ed3e09dbd 100644 --- a/meta/recipes-devtools/gcc/gcc-4.9.inc +++ b/meta/recipes-devtools/gcc/gcc-4.9.inc | |||
| @@ -78,6 +78,7 @@ SRC_URI = "\ | |||
| 78 | file://0060-Only-allow-e500-double-in-SPE_SIMD_REGNO_P-registers.patch \ | 78 | file://0060-Only-allow-e500-double-in-SPE_SIMD_REGNO_P-registers.patch \ |
| 79 | file://0061-target-gcc-includedir.patch \ | 79 | file://0061-target-gcc-includedir.patch \ |
| 80 | file://0062-gcc-var-tracking.c-backport-from-gcc-trunk-r212178.patch \ | 80 | file://0062-gcc-var-tracking.c-backport-from-gcc-trunk-r212178.patch \ |
| 81 | file://0063-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch \ | ||
| 81 | " | 82 | " |
| 82 | SRC_URI[md5sum] = "4df8ee253b7f3863ad0b86359cd39c43" | 83 | SRC_URI[md5sum] = "4df8ee253b7f3863ad0b86359cd39c43" |
| 83 | SRC_URI[sha256sum] = "2020c98295856aa13fda0f2f3a4794490757fc24bcca918d52cc8b4917b972dd" | 84 | SRC_URI[sha256sum] = "2020c98295856aa13fda0f2f3a4794490757fc24bcca918d52cc8b4917b972dd" |
diff --git a/meta/recipes-devtools/gcc/gcc-4.9/0063-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch b/meta/recipes-devtools/gcc/gcc-4.9/0063-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch new file mode 100644 index 0000000000..c48bd48478 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.9/0063-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | From 861bcfd4ae814f351e0c668ee26d01d1331e0422 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 28 Apr 2015 23:15:27 -0700 | ||
| 4 | Subject: [PATCH 36/37] Use SYSTEMLIBS_DIR replacement instead of hardcoding | ||
| 5 | base_libdir | ||
| 6 | |||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- | ||
| 9 | gcc/config/aarch64/aarch64-linux.h | 2 +- | ||
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 11 | |||
| 12 | Index: gcc-4.9.2/gcc/config/aarch64/aarch64-linux.h | ||
| 13 | =================================================================== | ||
| 14 | --- gcc-4.9.2.orig/gcc/config/aarch64/aarch64-linux.h | ||
| 15 | +++ gcc-4.9.2/gcc/config/aarch64/aarch64-linux.h | ||
| 16 | @@ -21,7 +21,7 @@ | ||
| 17 | #ifndef GCC_AARCH64_LINUX_H | ||
| 18 | #define GCC_AARCH64_LINUX_H | ||
| 19 | |||
| 20 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}.so.1" | ||
| 21 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-aarch64%{mbig-endian:_be}.so.1" | ||
| 22 | |||
| 23 | #define CPP_SPEC "%{pthread:-D_REENTRANT}" | ||
| 24 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-5.1.inc b/meta/recipes-devtools/gcc/gcc-5.1.inc index d38a7d9d91..db4c795ef9 100644 --- a/meta/recipes-devtools/gcc/gcc-5.1.inc +++ b/meta/recipes-devtools/gcc/gcc-5.1.inc | |||
| @@ -67,6 +67,7 @@ SRC_URI = "\ | |||
| 67 | file://0033-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch \ | 67 | file://0033-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch \ |
| 68 | file://0034-Don-t-search-host-directory-during-relink-if-inst_pr.patch \ | 68 | file://0034-Don-t-search-host-directory-during-relink-if-inst_pr.patch \ |
| 69 | file://0035-Dont-link-the-plugins-with-libgomp-explicitly.patch \ | 69 | file://0035-Dont-link-the-plugins-with-libgomp-explicitly.patch \ |
| 70 | file://0036-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch \ | ||
| 70 | " | 71 | " |
| 71 | 72 | ||
| 72 | #S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${SNAP}" | 73 | #S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${SNAP}" |
diff --git a/meta/recipes-devtools/gcc/gcc-5.1/0036-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch b/meta/recipes-devtools/gcc/gcc-5.1/0036-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch new file mode 100644 index 0000000000..b691946b0e --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-5.1/0036-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | From 861bcfd4ae814f351e0c668ee26d01d1331e0422 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 28 Apr 2015 23:15:27 -0700 | ||
| 4 | Subject: [PATCH 36/37] Use SYSTEMLIBS_DIR replacement instead of hardcoding | ||
| 5 | base_libdir | ||
| 6 | |||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- | ||
| 9 | gcc/config/aarch64/aarch64-linux.h | 2 +- | ||
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 11 | |||
| 12 | diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h | ||
| 13 | index 9abb252..79525ee 100644 | ||
| 14 | --- a/gcc/config/aarch64/aarch64-linux.h | ||
| 15 | +++ b/gcc/config/aarch64/aarch64-linux.h | ||
| 16 | @@ -21,7 +21,7 @@ | ||
| 17 | #ifndef GCC_AARCH64_LINUX_H | ||
| 18 | #define GCC_AARCH64_LINUX_H | ||
| 19 | |||
| 20 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" | ||
| 21 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" | ||
| 22 | |||
| 23 | #undef ASAN_CC1_SPEC | ||
| 24 | #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}" | ||
| 25 | -- | ||
| 26 | 2.1.4 | ||
| 27 | |||
