Module Name:    src
Committed By:   rillig
Date:           Sun Jan 24 16:55:10 UTC 2021

Modified Files:
        src/tools/lint: Makefile
        src/usr.bin/xlint/xlint: pathnames.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tools/lint/Makefile
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/xlint/xlint/pathnames.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/lint/Makefile
diff -u src/tools/lint/Makefile:1.6 src/tools/lint/Makefile:1.7
--- src/tools/lint/Makefile:1.6	Sun Jan 24 16:22:55 2021
+++ src/tools/lint/Makefile	Sun Jan 24 16:55:09 2021
@@ -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}-\"
 
 

Index: src/usr.bin/xlint/xlint/pathnames.h
diff -u src/usr.bin/xlint/xlint/pathnames.h:1.5 src/usr.bin/xlint/xlint/pathnames.h:1.6
--- src/usr.bin/xlint/xlint/pathnames.h:1.5	Sat Jan 16 16:03:46 2021
+++ src/usr.bin/xlint/xlint/pathnames.h	Sun Jan 24 16:55:09 2021
@@ -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"

Reply via email to