diff -r 581c4dd64733 gcc/gcc.c
--- a/gcc/gcc.c	Sun Jul 26 15:32:17 2015 -0400
+++ b/gcc/gcc.c	Sun Jul 26 15:32:19 2015 -0400
@@ -670,7 +670,7 @@
 
 #ifndef LINK_SSP_SPEC
 #ifdef TARGET_LIBC_PROVIDES_SSP
-#define LINK_SSP_SPEC "%{fstack-protector:}"
+#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all:-lssp_nonshared}"
 #else
 #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-strong|fstack-protector-all:-lssp_nonshared -lssp}"
 #endif