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.
This commit is contained in:
rillig 2021-01-24 16:55:09 +00:00
parent 521520928a
commit c5b23e2249
2 changed files with 5 additions and 3 deletions

View File

@ -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}-\"

View File

@ -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"