Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make Comment on interaction of posix.mk with[out] -r
details: https://anonhg.NetBSD.org/src/rev/a3ce8d32d654
branches: trunk
changeset: 365698:a3ce8d32d654
user: sjg <sjg%NetBSD.org@localhost>
date: Mon Apr 18 16:09:05 2022 +0000
description:
Comment on interaction of posix.mk with[out] -r
diffstat:
usr.bin/make/parse.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r dc286b665fda -r a3ce8d32d654 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c Mon Apr 18 15:59:39 2022 +0000
+++ b/usr.bin/make/parse.c Mon Apr 18 16:09:05 2022 +0000
@@ -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 @@
#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);
}
Home |
Main Index |
Thread Index |
Old Index