From e7beaf996810218e8a2089acd591798b75aeb145 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 23 Dec 2015 14:31:26 +0000 Subject: [PATCH] Install ld also as ld.bfd, for use with cc -fuse-ld=bfd PR: 205409 [exp-run] MFC after: 1 week Relnotes: Yes Sponsored by: The FreeBSD Foundation --- gnu/usr.bin/binutils/ld/Makefile | 1 + tools/build/mk/OptionalObsoleteFiles.inc | 1 + 2 files changed, 2 insertions(+) diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile index 40dd7e25523c..5058c0a8e3e8 100644 --- a/gnu/usr.bin/binutils/ld/Makefile +++ b/gnu/usr.bin/binutils/ld/Makefile @@ -48,6 +48,7 @@ CLEANFILES+= ldemul-list.h stringify.sed FILES= ${LDSCRIPTS:S|^|ldscripts/|} FILESDIR= ${SCRIPTDIR} +LINKS= ${BINDIR}/ld ${BINDIR}/ld.bfd HOST= ${TARGET_TUPLE} LIBSEARCHPATH= \"=/lib\":\"=/usr/lib\" diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc index 779f596062d2..838971b77d4b 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -189,6 +189,7 @@ OLD_DIRS+=usr/share/examples/bhyve .if ${MK_BINUTILS} == no OLD_FILES+=usr/bin/as OLD_FILES+=usr/bin/ld +OLD_FILES+=usr/bin/ld.bfd .if ${MK_ELFCOPY_AS_OBJCOPY} == no OLD_FILES+=usr/bin/objcopy .endif