Index: Mk/bsd.port.mk =================================================================== --- Mk/bsd.port.mk +++ Mk/bsd.port.mk @@ -1844,6 +1844,7 @@ .if defined(LLD_UNSAFE) && ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld LDFLAGS+= -fuse-ld=bfd +BINARY_ALIAS+= ld=${LD} . if !defined(USE_BINUTILS) . if exists(/usr/bin/ld.bfd) LD= /usr/bin/ld.bfd Index: devel/libds/Makefile =================================================================== --- devel/libds/Makefile +++ devel/libds/Makefile @@ -14,9 +14,7 @@ LICENSE= BSD4CLAUSE USE_LDCONFIG= yes -# Requires directly-invoked linker to provide library search paths. -LLD_UNSAFE= yes -BINARY_ALIAS= ld=ld.bfd +LLD_UNSAFE= yes # Needs linker to provide library search paths. ALL_TARGET= gcc HTML= avltree.html heap.html parray.html set.html \ Index: devel/pdcurses/Makefile =================================================================== --- devel/pdcurses/Makefile +++ devel/pdcurses/Makefile @@ -18,9 +18,7 @@ USE_XORG= x11 xext sm ice xt xaw xmu xpm GNU_CONFIGURE= yes MAKE_JOBS_UNSAFE=yes -# Requires directly-invoked linker to provide library search paths. -LLD_UNSAFE= yes -BINARY_ALIAS= ld=ld.bfd +LLD_UNSAFE= yes # Needs linker to provide library search paths. WRKSRC_SUBDIR= x11 Index: irc/evangeline/Makefile =================================================================== --- irc/evangeline/Makefile +++ irc/evangeline/Makefile @@ -18,9 +18,8 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS+=--with-tcllib=${LOCALBASE}/lib/libtcl${TCL_SHLIB_VER}.so \ --with-tclinc=${TCL_INCLUDEDIR}/tcl.h -# Requires directly-invoked linker to provide library search paths. +LLD_UNSAFE= yes # Needs linker to provide library search paths. LLD_UNSAFE= yes -BINARY_ALIAS= ld=ld.bfd PLIST_FILES= bin/evangeline Index: lang/myrddin/Makefile =================================================================== --- lang/myrddin/Makefile +++ lang/myrddin/Makefile @@ -20,9 +20,8 @@ TEST_TARGET= check WRKSRC= ${WRKDIR}/mc -# Myrddin is LLD_UNSAFE: # ld: error: : section sh_addralign is not a power of 2 -BINARY_ALIAS= ld=ld.bfd +LLD_UNSAFE= yes OPTIONS_DEFINE= DEBUG VIM OPTIONS_DEFAULT= VIM Index: multimedia/harvid/Makefile =================================================================== --- multimedia/harvid/Makefile +++ multimedia/harvid/Makefile @@ -18,7 +18,6 @@ USE_GITHUB= yes GH_ACCOUNT= x42 LLD_UNSAFE= yes -BINARY_ALIAS= ld=ld.bfd MAKE_JOBS_UNSAFE= yes # https://github.com/x42/harvid/issues/5 Index: net-im/uTox/Makefile =================================================================== --- net-im/uTox/Makefile +++ net-im/uTox/Makefile @@ -29,7 +29,6 @@ pkgconfig USE_XORG= x11 xext xrender LLD_UNSAFE= yes -BINARY_ALIAS= ld=ld.bfd OPTIONS_DEFINE= DBUS OPTIONS_DEFAULT= DBUS Index: net-p2p/monero-cli/Makefile =================================================================== --- net-p2p/monero-cli/Makefile +++ net-p2p/monero-cli/Makefile @@ -34,7 +34,6 @@ GH_PROJECT= monero CFLAGS+= -D_WANT_SEMUN LLD_UNSAFE= yes -BINARY_ALIAS= ld=ld.bfd OPTIONS_DEFINE= DOXYGEN DOXYGEN_BUILD_DEPENDS= dot:graphics/graphviz \ Index: sysutils/dupd/Makefile =================================================================== --- sysutils/dupd/Makefile +++ sysutils/dupd/Makefile @@ -18,7 +18,6 @@ USES= gmake ssl sqlite:3 LLD_UNSAFE= yes -BINARY_ALIAS= ld=ld.bfd PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz Index: sysutils/installwatch/Makefile =================================================================== --- sysutils/installwatch/Makefile +++ sysutils/installwatch/Makefile @@ -14,9 +14,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING USE_LDCONFIG= yes -# Requires directly-invoked linker to provide library search paths. -LLD_UNSAFE= yes -BINARY_ALIAS= ld=ld.bfd +LLD_UNSAFE= yes # Needs linker to provide library search paths. PLIST_FILES= bin/installwatch lib/installwatch.so PORTDOCS= BUGS CHANGELOG README TODO Index: www/mozplugger/Makefile =================================================================== --- www/mozplugger/Makefile +++ www/mozplugger/Makefile @@ -16,7 +16,6 @@ USES= desthack gmake webplugin:native USE_XORG= x11 xt LLD_UNSAFE= yes -BINARY_ALIAS= ld=ld.bfd WEBPLUGIN_FILES=mozplugger.so MAKE_ENV= WEBPLUGINS_DIR="${WEBPLUGIN_DIR}"