Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/llvm LLVM doesn't use term.h, so don't check for it wh...



details:   https://anonhg.NetBSD.org/src/rev/5d12831411ba
branches:  trunk
changeset: 745026:5d12831411ba
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Feb 21 15:00:44 2020 +0000

description:
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.

diffstat:

 tools/llvm/Makefile |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r b2df36b27625 -r 5d12831411ba tools/llvm/Makefile
--- a/tools/llvm/Makefile       Fri Feb 21 14:49:57 2020 +0000
+++ b/tools/llvm/Makefile       Fri Feb 21 15:00:44 2020 +0000
@@ -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 @@
            --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 @@
                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}; \



Home | Main Index | Thread Index | Old Index