Source-Changes-HG archive

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

[src/trunk]: src/share/mk bsd.own.mk: support ${MACHINE} defaults in MK* = yes



details:   https://anonhg.NetBSD.org/src/rev/1a0ef22c2ac1
branches:  trunk
changeset: 376095:1a0ef22c2ac1
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed May 31 20:47:35 2023 +0000

description:
bsd.own.mk: support ${MACHINE} defaults in MK* = yes

For MK* variables (in _MKVARS.yes), default to
MK*.${MACHINE} if MK*.${MACHINE_ARCH} isn't defined.

Equivalent to _MKVARS.no change by mrg@ in rev 1.1065 on 2018-06-16.

diffstat:

 share/mk/bsd.own.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 7a5ef75d20db -r 1a0ef22c2ac1 share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Wed May 31 20:45:02 2023 +0000
+++ b/share/mk/bsd.own.mk       Wed May 31 20:47:35 2023 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.own.mk,v 1.1330 2023/05/31 20:45:02 lukem Exp $
+#      $NetBSD: bsd.own.mk,v 1.1331 2023/05/31 20:47:35 lukem Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1227,7 +1227,7 @@ MKSTATICPIE?=     no
        MKYP
 
 .for var in ${_MKVARS.yes}
-${var}?=       ${${var}.${MACHINE_ARCH}:Uyes}
+${var}?=       ${${var}.${MACHINE_ARCH}:U${${var}.${MACHINE}:Uyes}}
 .endfor
 
 #



Home | Main Index | Thread Index | Old Index