summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2017-03-15 21:05:28 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2017-03-15 21:05:28 +0000
commitb5a8ff08afaf3ce5fc4e4f5934c5063742350e63 (patch)
tree4987121b6e42056659408d073f080fb025e5ad33 /sys/arch/sparc64
parent5a86bb8ee1f8f27891c208b9e5b561e0c4ebe1de (diff)
Fix building profiling kernels by passing the -p flag to config(8)
if the kernel's name ends in .PROF. problem reported by jmc via mpi ok mpi
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/compile/Makefile.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/sparc64/compile/Makefile.inc b/sys/arch/sparc64/compile/Makefile.inc
index deda55ebc1d..9e9e38f1ed1 100644
--- a/sys/arch/sparc64/compile/Makefile.inc
+++ b/sys/arch/sparc64/compile/Makefile.inc
@@ -9,7 +9,8 @@ config:
.else
.PHONY: config clean
config:
- config -b ${.OBJDIR} -s ${SYSDIR} ${CONFDIR}/${.CURDIR:T:S/.PROF$//}
+ config ${.CURDIR:M*.PROF:C/.*/-p/} -b ${.OBJDIR} \
+ -s ${SYSDIR} ${CONFDIR}/${.CURDIR:T:S/.PROF$//}
.endif
cleandir clean: