diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2021-08-02 13:36:03 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2021-08-02 13:36:03 +0000 |
commit | 31ba4ce8898f9dfa5e7f054fdbc26e50a599a6e3 (patch) | |
tree | b9895127e861448a23a51c15aba851acf5a216dc /usr.bin/clang/lld | |
parent | 2de949cf85d0e0b9ff71e1ffd74153814de96175 (diff) | |
download | src-31ba4ce8898f9dfa5e7f054fdbc26e50a599a6e3.tar.gz src-31ba4ce8898f9dfa5e7f054fdbc26e50a599a6e3.zip |
Allow bootstrapping llvm-tblgen on macOS and Linux
This is needed in order to build various LLVM binutils (e.g. addr2line)
as well as clang/lld/lldb.
Co-authored-by: Jessica Clarke <jrtc27@FreeBSD.org>
Test Plan: Compiles on ubuntu 18.04 and macOS 11.4
Reviewed By: dim
Differential Revision: https://reviews.freebsd.org/D31057
Diffstat (limited to 'usr.bin/clang/lld')
-rw-r--r-- | usr.bin/clang/lld/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/clang/lld/Makefile b/usr.bin/clang/lld/Makefile index 3593a4006ba2..8e95ccc07f04 100644 --- a/usr.bin/clang/lld/Makefile +++ b/usr.bin/clang/lld/Makefile @@ -102,8 +102,10 @@ TGHDRS+= ${INCFILE} DPSRCS+= ${TGHDRS} CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} +.if ${.MAKE.OS} == "FreeBSD" || !defined(BOOTSTRAPPING) LIBADD+= execinfo LIBADD+= ncursesw +.endif LIBADD+= pthread LIBADD+= z |