]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: fix GCC linking with -fstack-protector.
authorGary V. Vaughan <gary@gnu.org>
Sat, 25 Oct 2014 16:25:11 +0000 (17:25 +0100)
committerGary V. Vaughan <gary@gnu.org>
Sat, 25 Oct 2014 16:25:11 +0000 (17:25 +0100)
* 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>
build-aux/ltmain.in

index 65b5a2dc0c422bba90b6beb4a23a3fdc8e688566..8b5945bcf926ae186f6972b1fbf43faee80ff426 100644 (file)
@@ -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"