diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-06-27 19:11:44 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-08 13:34:45 +0100 |
commit | dc3b3a8df3297367e9386dd3ac098b64f7f46d06 (patch) | |
tree | 554209a5ed207ee22c1506313e2f820fa84d52d4 /meta/recipes-devtools/gcc/gcc-7.1.inc | |
parent | fb3be142ce224ba972e3217cf6938373c6f081b5 (diff) | |
download | poky-dc3b3a8df3297367e9386dd3ac098b64f7f46d06.tar.gz |
gcc: Link libssp_nonshared.a only on musl targets
glibc already provides the content for libssp_nonshared
in libc_nonshared.a therefore we dont need to make it
universal.
This also fixed build issues on glibc when linking statically
and using -fstack-protector
Fixed errors like
/mnt/a/oe/build/tmp/work/i586-bec-linux/aufs-util/3.14+gitAUTOINC+bdfcc0dcfc-r0/recipe-sysroot/usr/lib/../lib/libc.a(stack_chk_fail.o): In function `__stack_chk_fail': /usr/src/debug/glibc/2.26-r0/git/debug/stack_chk_fail.c:27: multiple definition of `__stack_chk_fail_local' /mnt/a/oe/build/tmp/work/i586-bec-linux/aufs-util/3.14+gitAUTOINC+bdfcc0dcfc-r0/recipe-sysroot/usr/lib/../lib/libssp_nonshared.a(libssp_nonshared_la-ssp-local.o):/usr/src/debug/gcc-runtime/7.1.0-r0/gcc-7.1.0/build.i586-bec-linux.i586-bec-linux/i586-bec-linux/libssp/../../../../../../../../work-shared/gcc-7.1.0-r0/gcc-7.1.0/libssp/ssp-local.c:47: first defined here collect2: error: ld returned 1 exit status
(From OE-Core rev: d71eba26850838b2878efea3f8c392a2eb2ebbfb)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-7.1.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-7.1.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-7.1.inc b/meta/recipes-devtools/gcc/gcc-7.1.inc index b52d51fba6..96fc11c943 100644 --- a/meta/recipes-devtools/gcc/gcc-7.1.inc +++ b/meta/recipes-devtools/gcc/gcc-7.1.inc | |||
@@ -64,7 +64,7 @@ SRC_URI = "\ | |||
64 | file://0037-Search-target-sysroot-gcc-version-specific-dirs-with.patch \ | 64 | file://0037-Search-target-sysroot-gcc-version-specific-dirs-with.patch \ |
65 | file://0038-Fix-various-_FOR_BUILD-and-related-variables.patch \ | 65 | file://0038-Fix-various-_FOR_BUILD-and-related-variables.patch \ |
66 | file://0039-nios2-Define-MUSL_DYNAMIC_LINKER.patch \ | 66 | file://0039-nios2-Define-MUSL_DYNAMIC_LINKER.patch \ |
67 | file://0040-ssp_nonshared.patch \ | 67 | file://0040-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch \ |
68 | file://0041-gcc-libcpp-support-ffile-prefix-map-old-new.patch \ | 68 | file://0041-gcc-libcpp-support-ffile-prefix-map-old-new.patch \ |
69 | file://0042-Reuse-fdebug-prefix-map-to-replace-ffile-prefix-map.patch \ | 69 | file://0042-Reuse-fdebug-prefix-map-to-replace-ffile-prefix-map.patch \ |
70 | file://0043-gcc-final.c-fdebug-prefix-map-support-to-remap-sourc.patch \ | 70 | file://0043-gcc-final.c-fdebug-prefix-map-support-to-remap-sourc.patch \ |