]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: fix GCC linking with -specs=*
authorPavel Raiskup <praiskup@redhat.com>
Fri, 18 Sep 2015 08:36:43 +0000 (10:36 +0200)
committerPavel Raiskup <praiskup@redhat.com>
Fri, 18 Sep 2015 12:14:37 +0000 (14:14 +0200)
References:
https://bugzilla.redhat.com/show_bug.cgi?id=985592

* build-aux/ltmain.in (func_mode_link): Pass -specs=*
to the linker, Fedora uses this option for hardening.

Signed-off-by: Pavel Raiskup <praiskup@redhat.com>
build-aux/ltmain.in

index d5cf07a63f5994a160519997d973aabd33a352fc..0c40da06deb433b75158589eaac40acf82aa3e49 100644 (file)
@@ -5360,10 +5360,12 @@ func_mode_link ()
       # -tp=*                Portland pgcc target processor selection
       # --sysroot=*          for sysroot support
       # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
+      # -specs=*             GCC specs files
       # -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|-fstack-protector*|-stdlib=*)
+      -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
+      -specs=*)
         func_quote_for_eval "$arg"
        arg=$func_quote_for_eval_result
         func_append compile_command " $arg"