Blame SOURCES/libtool-2.4.6-specs.patch

765b1f
From 702a97fbb09bd7088a50f2b239016d1e32843c24 Mon Sep 17 00:00:00 2001
765b1f
From: Pavel Raiskup <praiskup@redhat.com>
765b1f
Date: Fri, 18 Sep 2015 10:36:43 +0200
765b1f
Subject: libtool: fix GCC linking with -specs=*
765b1f
765b1f
References:
765b1f
https://bugzilla.redhat.com/show_bug.cgi?id=985592
765b1f
765b1f
* build-aux/ltmain.in (func_mode_link): Pass -specs=*
765b1f
to the linker, Fedora uses this option for hardening.
765b1f
765b1f
Signed-off-by: Pavel Raiskup <praiskup@redhat.com>
765b1f
---
765b1f
 build-aux/ltmain.in | 4 +++-
765b1f
 1 file changed, 3 insertions(+), 1 deletion(-)
765b1f
765b1f
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
765b1f
index d5cf07a..0c40da0 100644
765b1f
--- a/build-aux/ltmain.in
765b1f
+++ b/build-aux/ltmain.in
765b1f
@@ -5360,10 +5360,12 @@ func_mode_link ()
765b1f
       # -tp=*                Portland pgcc target processor selection
765b1f
       # --sysroot=*          for sysroot support
765b1f
       # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
765b1f
+      # -specs=*             GCC specs files
765b1f
       # -stdlib=*            select c++ std lib with clang
765b1f
       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
765b1f
       -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
765b1f
-      -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*)
765b1f
+      -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
765b1f
+      -specs=*)
765b1f
         func_quote_for_eval "$arg"
765b1f
 	arg=$func_quote_for_eval_result
765b1f
         func_append compile_command " $arg"
765b1f
-- 
765b1f
cgit v1.0-41-gc330
765b1f