Module Name: src
Committed By: christos
Date: Wed Jan 8 22:04:24 UTC 2020
Modified Files:
src/share/mk: sys.mk
Log Message:
Back out previous. This has no chance to work unless the make variable parsing
is not changed do that instead of scanning for a single character delim ':',
it scans for "?:". This is because !empty(COMPILE.c:M*-pg*) contains a ':'.
To generate a diff of this commit:
cvs rdiff -u -r1.141 -r1.142 src/share/mk/sys.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/mk/sys.mk
diff -u src/share/mk/sys.mk:1.141 src/share/mk/sys.mk:1.142
--- src/share/mk/sys.mk:1.141 Tue Jan 7 23:15:45 2020
+++ src/share/mk/sys.mk Wed Jan 8 17:04:24 2020
@@ -1,4 +1,4 @@
-# $NetBSD: sys.mk,v 1.141 2020/01/08 04:15:45 christos Exp $
+# $NetBSD: sys.mk,v 1.142 2020/01/08 22:04:24 christos Exp $
# @(#)sys.mk 8.2 (Berkeley) 3/21/94
#
# This file contains the basic rules for make(1) and is read first
@@ -34,7 +34,7 @@ DBG?= -O2 -fno-reorder-blocks
.elif ${MACHINE_ARCH} == "coldfire"
DBG?= -O1
.elif !empty(MACHINE_ARCH:Maarch64*)
-DBG?= -O2 ${!empty(COMPILE.c:M*-pg*) || !empty(COMPILE.cc:M*-pg*) :? -fomit-frame-pointer:}
+DBG?= -O2 ${"${.TARGET:M*.po}" == "":? -fomit-frame-pointer:}
.else
DBG?= -O2
.endif