Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/clang/llvm.prog.mk
Show All 16 Lines | |||||
.for lib in ${LIBDEPS} | .for lib in ${LIBDEPS} | ||||
DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a | DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a | ||||
LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a | LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a | ||||
.endfor | .endfor | ||||
PACKAGE= clang | PACKAGE= clang | ||||
.if !defined(BOOTSTRAPPING) || ${.MAKE.OS} == "FreeBSD" | |||||
markj: A dumb question: when building bootstrap-tools during buildworld, llvm-tblgen is built and… | |||||
Not Done Inline Actionsglibc defines it, or at least it does in the 2.27 version present in Ubuntu 18.04, and macOS defines it in libsystem_c.dylib jrtc27: glibc defines it, or at least it does in the 2.27 version present in Ubuntu 18.04, and macOS… | |||||
Not Done Inline ActionsI see, thanks. markj: I see, thanks. | |||||
LIBADD+= execinfo | LIBADD+= execinfo | ||||
LIBADD+= ncursesw | LIBADD+= ncursesw | ||||
.else | |||||
LDADD+= -lncurses | |||||
.endif | |||||
LIBADD+= pthread | LIBADD+= pthread | ||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> |
A dumb question: when building bootstrap-tools during buildworld, llvm-tblgen is built and libllvmminimal.a is linked in. The latter contains references to backtrace() since config.h defines HAVE_BACKTRACE unconditionally and llvm::sys::PrintStackTrace() uses it, so the build fails since libexecinfo isn't linked. BOOTSTRAPPING is defined to 0 by the top-level makefile, so how is this supposed to work?