otrx: add extra compilation check before using __BYTE_ORDER
[openwrt/svn-archive/archive.git] / toolchain / gcc / patches / 4.8-linaro / 030-always-link-ssp-noshared.patch
1 --- gcc-4.7.4.org/gcc/gcc.c
2 +++ gcc-4.7.4/gcc/gcc.c
3 @@ -603,7 +603,7 @@
4
5 #ifndef LINK_SSP_SPEC
6 #ifdef TARGET_LIBC_PROVIDES_SSP
7 -#define LINK_SSP_SPEC "%{fstack-protector:}"
8 +#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all:-lssp_nonshared}"
9 #else
10 #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all:-lssp_nonshared -lssp}"
11 #endif