commit: 3756849289a449ff09e329aaa7e26fbd5739805e
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 25 11:20:53 2020 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Jan 25 11:20:53 2020 +0000
URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=37568492
crossdev: disable default ssp support on x86 and ppc on musl
Set USE=-ssp by default. User can still manually override
via environment variable to see how it breaks:
USE=ssp crossdev -t i686-gentoo-linux-musl
Reported-by: Andrew Aladjev
Bug: https://bugs.gentoo.org/706210
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
crossdev | 3 +++
1 file changed, 3 insertions(+)
diff --git a/crossdev b/crossdev
index b0c44c5..c370535 100755
--- a/crossdev
+++ b/crossdev
@@ -416,6 +416,9 @@ parse_target() {
# [1.]: no -fstack-protector flag support:
# check as '$CC -fstack-protector -c -x c - </dev/null'
alpha*|avr*|hppa*|ia64*|mmix*|nios2*) ssp_support=no;;
+ # [2.]: musl does not provide __stack_chk_fail_local:
+ # and is broken on ARCH=x86 and ppc32:
https://bugs.gentoo.org/706210
+ i[3-6]86-*-musl*|powerpc-*-musl*|powerpcle-*-musl*)
ssp_support=no;;
esac
if [[ $ssp_support = "no" ]]; then
# ssp is >=gcc-6, nossp is <gcc-6