mirror of
https://github.com/richfelker/musl-cross-make.git
synced 2025-03-13 18:47:00 +01:00

GCC 6.4.0 has one big advantage over 6.3.0: it is shipped as .tar.xz, shaving 30 MB from its download size, and also considerably speeding up the extraction process. All patches are copies of the GCC 6.3.0 ones, except 0004-posix_memalign.diff which was rebased to apply cleanly. 0014-ubsan-empty-string-fix.diff was removed, since it was upstreamed.
15 lines
589 B
Diff
15 lines
589 B
Diff
diff --git a/gcc/gcc.c b/gcc/gcc.c
|
|
index 0f042b0..0576ea7 100644
|
|
--- a/gcc/gcc.c
|
|
+++ b/gcc/gcc.c
|
|
@@ -860,7 +860,8 @@ proper position among the other output files. */
|
|
#ifndef LINK_SSP_SPEC
|
|
#ifdef TARGET_LIBC_PROVIDES_SSP
|
|
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
|
|
- "|fstack-protector-strong|fstack-protector-explicit:}"
|
|
+ "|fstack-protector-strong|fstack-protector-explicit" \
|
|
+ ":-lssp_nonshared}"
|
|
#else
|
|
#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
|
|
"|fstack-protector-strong|fstack-protector-explicit" \
|