qi: clarify the order in which qi looks for a recipe
[dragora.git] / patches / gcc / musl-libssp.diff
blob7a0d4a14f7addb8315a85f1530833d45cb5b6106
1 We link to it unconditionally, as otherwise we get link failures if
2 some objects are -fstack-protector built and final link happens with
3 -fno-stack-protector. This seems to be the common case when
4 bootstrapping gcc, the piepatches do not seem to fully fix the
5 crosstoolchain and bootstrap sequence wrt. stack-protector flag usage.
7 Based on patch by Timo Teras for Alpine Linux.
9 --- gcc-8-20180907/gcc/gcc.c.orig 2018-02-09 03:44:06.000000000 -0300
10 +++ gcc-8-20180907/gcc/gcc.c 2018-09-12 17:43:14.078635112 -0300
11 @@ -869,8 +869,7 @@
13 #ifndef LINK_SSP_SPEC
14 #ifdef TARGET_LIBC_PROVIDES_SSP
15 -#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
16 - "|fstack-protector-strong|fstack-protector-explicit:}"
17 +#define LINK_SSP_SPEC "-lssp_nonshared"
18 #else
19 #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
20 "|fstack-protector-strong|fstack-protector-explicit" \