]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: pass through -fuse-ld flags
authorMike Frysinger <vapier@gentoo.org>
Sat, 13 Feb 2016 07:14:29 +0000 (02:14 -0500)
committerPavel Raiskup <praiskup@redhat.com>
Fri, 19 Feb 2016 10:29:11 +0000 (11:29 +0100)
Starting with gcc-4.8, there's a -fuse-ld flag that can be used to
select between bfd & gold.  Make sure we pass it through to the
linking stage.

* build-aux/ltmain.in (func_mode_link): Pass -fuse-ld=* flags
through.
Copyright-paperwork-exempt: Yes

build-aux/ltmain.in

index 40eb0297f37ddda3b7482bc84d48f291e0b471e1..26015641925e2ee6522f50847ff9dddc0f27ef40 100644 (file)
@@ -5383,10 +5383,11 @@ func_mode_link ()
       # -specs=*             GCC specs files
       # -stdlib=*            select c++ std lib with clang
       # -fsanitize=*         Clang/GCC memory and address sanitizer
+      # -fuse-ld=*           Linker select flags for GCC
       -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=*| \
-      -specs=*|-fsanitize=*)
+      -specs=*|-fsanitize=*|-fuse-ld=*)
         func_quote_arg pretty "$arg"
        arg=$func_quote_arg_result
         func_append compile_command " $arg"