Link llvm-ar to llvm-ranlib, if WITH_CLANG_EXTRAS is enabled. When

invoked as llvm-ranlib, it can create an archive symbol table for
archives of objects compiled for LTO by an LLVM compiler.

Submitted by:	Dan McGregor <danismostlikely@gmail.com>
MFC after:	3 days
This commit is contained in:
dim 2017-01-06 23:05:29 +00:00
parent f4710006d6
commit 9a56cbcc17
2 changed files with 3 additions and 0 deletions

View File

@ -1489,6 +1489,7 @@ OLD_FILES+=usr/bin/llvm-lto
OLD_FILES+=usr/bin/llvm-mc
OLD_FILES+=usr/bin/llvm-nm
OLD_FILES+=usr/bin/llvm-pdbdump
OLD_FILES+=usr/bin/llvm-ranlib
OLD_FILES+=usr/bin/llvm-rtdyld
OLD_FILES+=usr/bin/llvm-symbolizer
OLD_FILES+=usr/bin/opt

View File

@ -7,4 +7,6 @@ SRCS+= llvm-ar.cpp
LIBADD+= z
LINKS+= ${BINDIR}/llvm-ar ${BINDIR}/llvm-ranlib
.include "../llvm.prog.mk"