Source-Changes-HG archive

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

[src/trunk]: src lint: make path to lint data configurable



details:   https://anonhg.NetBSD.org/src/rev/3e5dc6fea7ea
branches:  trunk
changeset: 958910:3e5dc6fea7ea
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Jan 24 16:55:09 2021 +0000

description:
lint: make path to lint data configurable

This is needed for strict bool mode, to make the custom header stdbool.h
available when lint is run as part of build.sh.

diffstat:

 tools/lint/Makefile             |  4 ++--
 usr.bin/xlint/xlint/pathnames.h |  4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 938ad174bb31 -r 3e5dc6fea7ea tools/lint/Makefile
--- a/tools/lint/Makefile       Sun Jan 24 16:45:41 2021 +0000
+++ b/tools/lint/Makefile       Sun Jan 24 16:55:09 2021 +0000
@@ -1,9 +1,9 @@
-#      $NetBSD: Makefile,v 1.6 2021/01/24 16:22:55 rillig Exp $
+#      $NetBSD: Makefile,v 1.7 2021/01/24 16:55:09 rillig Exp $
 
 HOSTPROGNAME=  ${MACHINE_GNU_PLATFORM}-lint
 HOST_SRCDIR=   usr.bin/xlint/xlint
 HOST_CPPFLAGS= -DPATH_LIBEXEC=\"${TOOLDIR}/libexec\" \
-               -DPATH_LIBLINT=\"${TOOLDIR}/libdata/lint\" \
+               -DPATH_LINTLIB=\"${TOOLDIR}/libdata/lint\" \
                -DTARGET_PREFIX=\"${MACHINE_GNU_PLATFORM}-\"
 
 
diff -r 938ad174bb31 -r 3e5dc6fea7ea usr.bin/xlint/xlint/pathnames.h
--- a/usr.bin/xlint/xlint/pathnames.h   Sun Jan 24 16:45:41 2021 +0000
+++ b/usr.bin/xlint/xlint/pathnames.h   Sun Jan 24 16:55:09 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pathnames.h,v 1.5 2021/01/16 16:03:46 rillig Exp $     */
+/*     $NetBSD: pathnames.h,v 1.6 2021/01/24 16:55:09 rillig Exp $     */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -40,7 +40,9 @@
 #define        PATH_USRBIN             "/usr/bin"
 
 /* default library search path */
+#ifndef PATH_LINTLIB
 #define PATH_LINTLIB           "/usr/libdata/lint"
+#endif
 
 /* overridden system headers */
 #define PATH_STRICT_BOOL_INCLUDE PATH_LINTLIB "/strict-bool"



Home | Main Index | Thread Index | Old Index