summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-5.3/0047-Fix-nios2-musl-build.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-02-02 10:32:49 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-07 17:29:59 +0000
commit8d57d1d8def66510d1a330f18761509ce014e148 (patch)
tree90ac13ab9f7d159ff42eb5758454e439512b8c72 /meta/recipes-devtools/gcc/gcc-5.3/0047-Fix-nios2-musl-build.patch
parenteb134c6ee6cab23ca01b699d3ca08b7ffd021cb2 (diff)
downloadpoky-8d57d1d8def66510d1a330f18761509ce014e148.tar.gz
gcc: Fix build on musl with -fstack-protector
When enabling the secutity flags on musl based targets the builds fail due to libssp(gcc-runtime) build asking to link with libssp and libssp_nonshared.a when configuring libssp itself. This does not work with musl since it does provide ssp implementation but not like glibc where these libraries are separate to libc Fix the nios2 patch with upstream status while at it and generate the patch after applying to my tree (From OE-Core rev: 77fb841f2e747dc7fb5e9234d870a7a32a74d09b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-5.3/0047-Fix-nios2-musl-build.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-5.3/0047-Fix-nios2-musl-build.patch11
1 files changed, 0 insertions, 11 deletions
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
deleted file mode 100644
index 44cea8485f..0000000000
--- a/meta/recipes-devtools/gcc/gcc-5.3/0047-Fix-nios2-musl-build.patch
+++ /dev/null
@@ -1,11 +0,0 @@
1diff -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 \