commit 7a9bd75c425694c0a8269214ff2e5e476eadc2f0 Author: Ed Maste Date: Thu Dec 21 21:49:14 2017 -0500 devel/libtool: pass through -fuse-ld flags GCC and Clang support a -fuse-ld flag to select between bfd, gold, and lld. As we migrate to lld as the base system linker we need to use this to fall back to bfd for ports that rely on its permissive behaviour. An equivalent change has been committed to libtool upstream in Feb 2016, but has not yet made it into a release. diff --git a/devel/libtool/Makefile b/devel/libtool/Makefile index 48e58c64532e..a8aeabf475cf 100644 --- a/devel/libtool/Makefile +++ b/devel/libtool/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= libtool -PORTREVISION= 0 +PORTREVISION= 1 COMMENT= Generic shared library support script diff --git a/devel/libtool/files/patch-build-aux-ltmain.sh b/devel/libtool/files/patch-build-aux-ltmain.sh new file mode 100644 index 000000000000..9bffb62dc747 --- /dev/null +++ b/devel/libtool/files/patch-build-aux-ltmain.sh @@ -0,0 +1,15 @@ +--- build-aux/ltmain.sh.orig 2017-12-21 21:46:51.958583000 -0500 ++++ build-aux/ltmain.sh 2017-12-21 21:47:57.258435000 -0500 +@@ -7273,9 +7273,11 @@ + # --sysroot=* for sysroot support + # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization + # -stdlib=* select c++ std lib with clang ++ # -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=*) ++ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ ++ -fuse-ld=*) + func_quote_for_eval "$arg" + arg=$func_quote_for_eval_result + func_append compile_command " $arg"