From a108ca324bfac2f98f2c34908747d662c43326e6 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Fri, 20 Dec 2019 16:54:20 +0000 Subject: 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 --- lib/libc/gmon/Makefile.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libc/gmon/Makefile.inc b/lib/libc/gmon/Makefile.inc index 7ba36bc84d6..626882d87fc 100644 --- a/lib/libc/gmon/Makefile.inc +++ b/lib/libc/gmon/Makefile.inc @@ -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 -- cgit v1.2.3