mirror of
https://github.com/openbsd/src.git
synced 2026-05-01 17:46:35 +00:00
The mcount.po target is special cased here since mcount.c should not be
compiled with pie or profiling enabled. This was missed when the independent depend target was removed. Align this target with the inference rules in bsd.lib.mk. This now creates mcount.d as it should and fixes 'make clean' which previously left mcount.po.d behind. ok guenther
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile.inc,v 1.6 2016/03/30 06:38:41 jmc Exp $
|
||||
# $OpenBSD: Makefile.inc,v 1.7 2019/12/20 16:54:19 tb Exp $
|
||||
|
||||
# gmon sources
|
||||
.PATH: ${LIBCSRCDIR}/gmon
|
||||
@@ -9,6 +9,7 @@ MAN+= moncontrol.3
|
||||
# mcount cannot be compiled with profiling or pie
|
||||
mcount.po:
|
||||
@echo "${COMPILE.c} ${NOPIE_FLAGS} ${.IMPSRC} -o ${.TARGET}"
|
||||
@${COMPILE.c} ${NOPIE_FLAGS} ${.IMPSRC} -o ${.TARGET}.o
|
||||
@${COMPILE.c} ${DFLAGS} ${NOPIE_FLAGS} ${.IMPSRC} -o ${.TARGET}.o
|
||||
@-mv $@.d $*.d
|
||||
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
|
||||
@rm -f ${.TARGET}.o
|
||||
|
||||
Reference in New Issue
Block a user