Module Name: src Committed By: joerg Date: Fri Feb 21 15:00:44 UTC 2020
Modified Files: src/tools/llvm: Makefile Log Message: LLVM doesn't use term.h, so don't check for it when probing here either. Increase robustness of checks for incremental builds by forcing a dependency on the Makefile itself. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/tools/llvm/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tools/llvm/Makefile diff -u src/tools/llvm/Makefile:1.22 src/tools/llvm/Makefile:1.23 --- src/tools/llvm/Makefile:1.22 Tue May 1 19:59:47 2018 +++ src/tools/llvm/Makefile Fri Feb 21 15:00:44 2020 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 2018/05/01 19:59:47 christos Exp $ +# $NetBSD: Makefile,v 1.23 2020/02/21 15:00:44 joerg Exp $ .include <bsd.hostinit.mk> @@ -20,7 +20,7 @@ config/config.status: ${LLVM_SRCDIR}/con --with-python=${.OBJDIR}/config/python # --disable-assertions -need-dl: +need-dl: Makefile printf '#include <dlfcn.h>\nint main(void){void *p; return dladdr(p, p);}' > need-dl.c if ${HOST_CC} -o need-dl.out -D_GNU_SOURCE need-dl.c > /dev/null 2>&1; then \ echo > ${.TARGET}; \ @@ -30,8 +30,8 @@ need-dl: echo > ${.TARGET}; \ fi -need-terminfo: - printf '#include <term.h>\nint main(void){return setupterm(0, 0, 0);}' > need-terminfo.c +need-terminfo: Makefile + printf 'int setupterm(char *, int, int *);\nint main(void){return setupterm("", 0, 0);}' > need-terminfo.c for lib in tinfo terminfo ncurses curses; do \ if ${HOST_CC} -o need-terminfo.out need-terminfo.c -l$$lib > /dev/null 2>&1; then \ echo -l$$lib > ${.TARGET}; \