diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2017-03-15 21:05:28 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2017-03-15 21:05:28 +0000 |
commit | b5a8ff08afaf3ce5fc4e4f5934c5063742350e63 (patch) | |
tree | 4987121b6e42056659408d073f080fb025e5ad33 /sys/arch/sparc64 | |
parent | 5a86bb8ee1f8f27891c208b9e5b561e0c4ebe1de (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.inc | 3 |
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: |