Author: emaste
Date: Sun Mar  4 01:37:49 2018
New Revision: 330366
URL: https://svnweb.freebsd.org/changeset/base/330366

Log:
  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

Modified:
  head/gnu/usr.bin/binutils/ld/Makefile

Modified: head/gnu/usr.bin/binutils/ld/Makefile
==============================================================================
--- head/gnu/usr.bin/binutils/ld/Makefile       Sat Mar  3 23:39:07 2018        
(r330365)
+++ head/gnu/usr.bin/binutils/ld/Makefile       Sun Mar  4 01:37:49 2018        
(r330366)
@@ -7,7 +7,15 @@ ELF_SCR_EXT=   x xbn xc xd xdc xdw xn xr xs xsc xsw xu x
 .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 \
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to