aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-06-18 08:52:33 +0000
committerSteven Barth <steven@midlink.org>2015-06-18 08:52:33 +0000
commit91e6eb49216c63813d3fe44a2f5dbd8dacf16928 (patch)
tree0c93e70cc2d9c5b72264872c1d8f78435734aa28 /tools
parente6b1c13b55acd39905f2d128a71c036286b710f3 (diff)
downloadmaster-187ad058-91e6eb49216c63813d3fe44a2f5dbd8dacf16928.tar.gz
master-187ad058-91e6eb49216c63813d3fe44a2f5dbd8dacf16928.tar.bz2
master-187ad058-91e6eb49216c63813d3fe44a2f5dbd8dacf16928.zip
libtool: passthrough -fstack-protector* to linker
on some platforms this is needed for gcc to link libssp Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46030 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r--tools/libtool/patches/160-passthrough-ssp.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/libtool/patches/160-passthrough-ssp.patch b/tools/libtool/patches/160-passthrough-ssp.patch
new file mode 100644
index 0000000000..9fad9aa9df
--- /dev/null
+++ b/tools/libtool/patches/160-passthrough-ssp.patch
@@ -0,0 +1,12 @@
+diff -ur libtool-2.4.orig/libltdl/config/ltmain.m4sh libtool-2.4/libltdl/config/ltmain.m4sh
+--- libtool-2.4.orig/libltdl/config/ltmain.m4sh 2015-06-18 10:46:15.499996979 +0200
++++ libtool-2.4/libltdl/config/ltmain.m4sh 2015-06-18 10:48:24.686882213 +0200
+@@ -5061,7 +5061,7 @@
+ # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
+- -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
++ -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ func_append compile_command " $arg"