diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2019-12-20 16:54:20 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2019-12-20 16:54:20 +0000 |
commit | a108ca324bfac2f98f2c34908747d662c43326e6 (patch) | |
tree | e0db64215cff44ddf688ad32ef2f0877e4d7eb9d /lib | |
parent | 9c1b590066ff0ac808905bb77b6b9d904992be10 (diff) |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gmon/Makefile.inc | 5 |
1 files changed, 3 insertions, 2 deletions
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 |