summaryrefslogtreecommitdiff
path: root/usr.bin/make/parse.c
diff options
context:
space:
mode:
authorsjg <sjg@NetBSD.org>2022-04-18 16:09:05 +0000
committersjg <sjg@NetBSD.org>2022-04-18 16:09:05 +0000
commitb1cd7edce56cadd407188dbf6f5dd7ac1bdd6d2d (patch)
treec5fd4b260afe95136fa0c6845cb017d520e6be10 /usr.bin/make/parse.c
parent4aa2b9e93a4011d80895435df4de0e9294e76860 (diff)
Comment on interaction of posix.mk with[out] -r
Diffstat (limited to 'usr.bin/make/parse.c')
-rw-r--r--usr.bin/make/parse.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c
index c168aba4abe..cea4e7df413 100644
--- a/usr.bin/make/parse.c
+++ b/usr.bin/make/parse.c
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.669 2022/04/18 15:06:27 rillig Exp $ */
+/* $NetBSD: parse.c,v 1.670 2022/04/18 16:09:05 sjg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -106,7 +106,7 @@
#include "pathnames.h"
/* "@(#)parse.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: parse.c,v 1.669 2022/04/18 15:06:27 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.670 2022/04/18 16:09:05 sjg Exp $");
/*
* A file being read.
@@ -1254,6 +1254,11 @@ HandleDependencySourcesEmpty(ParseSpecial special, SearchPathList *paths)
#ifdef POSIX
case SP_POSIX:
if (posix_state == PS_NOW_OR_NEVER) {
+ /*
+ * With '-r', 'posix.mk' (if it exists)
+ * can effectively substitute for 'sys.mk',
+ * otherwise it is an extension.
+ */
Global_Set("%POSIX", "1003.2");
IncludeFile("posix.mk", true, false, true);
}