mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-11 13:15:47 +00:00
12 lines
361 B
Diff
12 lines
361 B
Diff
|
--- gcc-4.7.4.org/gcc/gcc.c
|
||
|
+++ gcc-4.7.4/gcc/gcc.c
|
||
|
@@ -603,7 +603,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-all:-lssp_nonshared -lssp}"
|
||
|
#endif
|