summaryrefslogtreecommitdiff
path: root/build-aux/ltmain.in
diff options
context:
space:
mode:
authorGary V. Vaughan <gary@gnu.org>2014-10-25 17:25:11 +0100
committerGary V. Vaughan <gary@gnu.org>2014-10-25 17:25:11 +0100
commit6b02c1fb4b5f91316c8e19d8506990ca6a7915e1 (patch)
tree0b5ded39a69c3399fba58c10ceb19dfc40628e02 /build-aux/ltmain.in
parente145288b059e14ab7e58fc6a304e82d9dad282a6 (diff)
downloadlibtool-6b02c1fb4b5f91316c8e19d8506990ca6a7915e1.tar.gz
libtool: fix GCC linking with -fstack-protector.
* build-aux/ltmain.in (func_mode_link): Pass -fstack-protector* to the linker as it is required at link time to resolve libssp symbols. From Yaakov Selkowitz Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Diffstat (limited to 'build-aux/ltmain.in')
-rw-r--r--build-aux/ltmain.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 65b5a2dc..8b5945bc 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -5311,6 +5311,7 @@ func_mode_link ()
# -m*, -t[45]*, -txscale* architecture-specific flags for GCC
# -F/path path to uninstalled frameworks, gcc on darwin
# -p, -pg, --coverage, -fprofile-* profiling flags for GCC
+ # -fstack-protector* stack protector flags for GCC
# @file GCC response files
# -tp=* Portland pgcc target processor selection
# --sysroot=* for sysroot support
@@ -5318,7 +5319,7 @@ func_mode_link ()
# -stdlib=* select c++ std lib with clang
-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*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-stdlib=*)
+ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*)
func_quote_for_eval "$arg"
arg=$func_quote_for_eval_result
func_append compile_command " $arg"