llvm-strings: Install as strings when WITH_LLVM_BINUTILS=YES

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D32065
This commit is contained in:
Cameron Katri 2023-04-05 15:53:33 -04:00 committed by Ed Maste
parent 5d3e7166f6
commit 81fa5c4a82
2 changed files with 8 additions and 1 deletions

View File

@ -144,7 +144,6 @@ SUBDIR= alias \
split \
stat \
stdbuf \
strings \
su \
systat \
tail \
@ -258,6 +257,7 @@ SUBDIR.${MK_TOOLCHAIN}+= nm
SUBDIR.${MK_TOOLCHAIN}+= objcopy
SUBDIR.${MK_TOOLCHAIN}+= readelf
SUBDIR.${MK_TOOLCHAIN}+= size
SUBDIR+= strings
.endif
SUBDIR.${MK_TOOLCHAIN}+= c89
SUBDIR.${MK_TOOLCHAIN}+= c99

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <src.opts.mk>
PROG_CXX= llvm-strings
SRCDIR= llvm/tools/llvm-strings
@ -21,4 +23,9 @@ DEPENDFILES+= ${TGHDRS:C/$/.d/}
DPSRCS+= ${TGHDRS}
CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/}
.if ${MK_LLVM_BINUTILS} != "no"
LINKS+= ${BINDIR}/llvm-strings ${BINDIR}/strings
MLINKS+= llvm-strings.1 strings.1
.endif
.include "../llvm.prog.mk"