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
32 lines
694 B
Makefile
32 lines
694 B
Makefile
# $FreeBSD$
|
|
|
|
.include "${SRCTOP}/lib/clang/llvm.pre.mk"
|
|
|
|
CFLAGS+= -I${OBJTOP}/lib/clang/libllvm
|
|
|
|
.include "${SRCTOP}/lib/clang/llvm.build.mk"
|
|
|
|
# Special case for the bootstrap-tools phase.
|
|
.if (defined(TOOLS_PREFIX) || ${MACHINE} == "host") && \
|
|
(${PROG_CXX} == "clang-tblgen" || ${PROG_CXX} == "lldb-tblgen" || \
|
|
${PROG_CXX} == "llvm-tblgen")
|
|
LIBDEPS+= llvmminimal
|
|
.else
|
|
LIBDEPS+= llvm
|
|
.endif
|
|
|
|
.for lib in ${LIBDEPS}
|
|
DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
|
|
LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
|
|
.endfor
|
|
|
|
PACKAGE= clang
|
|
|
|
.if ${.MAKE.OS} == "FreeBSD" || !defined(BOOTSTRAPPING)
|
|
LIBADD+= execinfo
|
|
LIBADD+= ncursesw
|
|
.endif
|
|
LIBADD+= pthread
|
|
|
|
.include <bsd.prog.mk>
|