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