diff options
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-5.3.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-5.3/0047-Fix-nios2-musl-build.patch | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-5.3.inc b/meta/recipes-devtools/gcc/gcc-5.3.inc index 3ce089325f..80999c1111 100644 --- a/meta/recipes-devtools/gcc/gcc-5.3.inc +++ b/meta/recipes-devtools/gcc/gcc-5.3.inc | |||
@@ -76,6 +76,7 @@ SRC_URI = "\ | |||
76 | file://0044-Adding-mmusl-as-a-musl-libc-specifier-and-the-necess.patch \ | 76 | file://0044-Adding-mmusl-as-a-musl-libc-specifier-and-the-necess.patch \ |
77 | file://0045-Support-for-arm-linux-musl.patch \ | 77 | file://0045-Support-for-arm-linux-musl.patch \ |
78 | file://0046-Get-rid-of-ever-broken-fixincludes-on-musl.patch \ | 78 | file://0046-Get-rid-of-ever-broken-fixincludes-on-musl.patch \ |
79 | file://0047-Fix-nios2-musl-build.patch \ | ||
79 | " | 80 | " |
80 | 81 | ||
81 | BACKPORTS = "" | 82 | BACKPORTS = "" |
diff --git a/meta/recipes-devtools/gcc/gcc-5.3/0047-Fix-nios2-musl-build.patch b/meta/recipes-devtools/gcc/gcc-5.3/0047-Fix-nios2-musl-build.patch new file mode 100644 index 0000000000..44cea8485f --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-5.3/0047-Fix-nios2-musl-build.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | diff -Naru gcc-5.3.0.orig/gcc/config/nios2/linux.h gcc-5.3.0/gcc/config/nios2/linux.h | ||
2 | --- gcc-5.3.0.orig/gcc/config/nios2/linux.h 2015-05-28 16:08:37.000000000 +0200 | ||
3 | +++ gcc-5.3.0/gcc/config/nios2/linux.h 2016-01-04 02:42:46.878844806 +0100 | ||
4 | @@ -30,6 +30,7 @@ | ||
5 | #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" | ||
6 | |||
7 | #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-nios2.so.1" | ||
8 | +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-nios2.so.1" | ||
9 | |||
10 | #undef LINK_SPEC | ||
11 | #define LINK_SPEC LINK_SPEC_ENDIAN \ | ||