tweak the DBG rule that -fomit-frame-pointer for aarch64 when profiling

(because the compiler complains), to use a match with the compile flags
and *pg*, instead of using a match to a target suffix (which is NetBSD
build-specific). Pointed out by phone@.
This commit is contained in:
christos 2020-01-08 04:15:45 +00:00
parent 0d3a42e824
commit 42506d4e49

View File

@ -1,4 +1,4 @@
# $NetBSD: sys.mk,v 1.140 2019/12/20 04:04:25 christos Exp $
# $NetBSD: sys.mk,v 1.141 2020/01/08 04:15:45 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 ${"${.TARGET:M*.po}" == "":? -fomit-frame-pointer:}
DBG?= -O2 ${!empty(COMPILE.c:M*-pg*) || !empty(COMPILE.cc:M*-pg*) :? -fomit-frame-pointer:}
.else
DBG?= -O2
.endif