From 337981bd8934020c82f7d6032fac9ed98a91b968 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Sun, 4 Mar 2018 01:37:49 +0000 Subject: [PATCH] When lld is ld, install bfd's man page as ld.bfd.1 When WITH_LLD_IS_LD is set, lld's man page is installed as ld.1.gz, as was GNU BFD's man page prior to this change. Reported by: Tobias Kortkamp Sponsored by: The FreeBSD Foundation --- gnu/usr.bin/binutils/ld/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile index fb8097ac342..c1a14ab57aa 100644 --- a/gnu/usr.bin/binutils/ld/Makefile +++ b/gnu/usr.bin/binutils/ld/Makefile @@ -7,7 +7,15 @@ ELF_SCR_EXT= x xbn xc xd xdc xdw xn xr xs xsc xsw xu xw .PATH: ${SRCDIR}/ld PROG= ld.bfd +.if ${MK_LLD_IS_LD} == "no" MAN= ld.1 +.else +MAN= ld.bfd.1 +CLEANFILES+= ld.bfd.1 +ld.bfd.1: ld.1 + ${CP} ${.ALLSRC} ${.TARGET} +.endif + SCRIPTDIR= /usr/libdata/ldscripts SRCS+= ldcref.c \ ldctor.c \