libtool: passthrough -fstack-protector* to linker
[openwrt/openwrt.git] / tools / libtool / patches / 160-passthrough-ssp.patch
1 diff -ur libtool-2.4.orig/libltdl/config/ltmain.m4sh libtool-2.4/libltdl/config/ltmain.m4sh
2 --- libtool-2.4.orig/libltdl/config/ltmain.m4sh 2015-06-18 10:46:15.499996979 +0200
3 +++ libtool-2.4/libltdl/config/ltmain.m4sh 2015-06-18 10:48:24.686882213 +0200
4 @@ -5061,7 +5061,7 @@
5 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
6 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
8 - -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
9 + -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*)
10 func_quote_for_eval "$arg"
11 arg="$func_quote_for_eval_result"
12 func_append compile_command " $arg"