svn commit: r345834 - projects/runtime-coverage-v2/share/mk
Enji Cooper
ngie at FreeBSD.org
Tue Sep 3 14:06:10 UTC 2019
Author: ngie
Date: Wed Apr 3 05:43:32 2019
New Revision: 345834
URL: https://svnweb.freebsd.org/changeset/base/345834
Log:
--coverage should apply to static programs too
Statically compiled programs, like `/usr/tests/sys/capsicum-test/mini-me*`,
should have coverage compile time/linker flags applied to them as well as
the objects are compiled with with `--coverage`, etc.
This fixes a linker error with `tests/sys/capsicum:mini-me`.
Modified:
projects/runtime-coverage-v2/share/mk/bsd.prog.mk
Modified: projects/runtime-coverage-v2/share/mk/bsd.prog.mk
==============================================================================
--- projects/runtime-coverage-v2/share/mk/bsd.prog.mk Wed Apr 3 05:40:04 2019 (r345833)
+++ projects/runtime-coverage-v2/share/mk/bsd.prog.mk Wed Apr 3 05:43:32 2019 (r345834)
@@ -78,12 +78,11 @@ TAG_ARGS= -T ${TAGS:[*]:S/ /,/g}
.if defined(NO_SHARED) && ${NO_SHARED:tl} != "no"
LDFLAGS+= -static
-.else
+.endif
.if defined(_WANTS_DEBUG) && ${MK_COVERAGE} != "no"
_COV_FLAG= --coverage -fprofile-dir=${COVERAGEDIR}
CFLAGS+= ${_COV_FLAG}
CXXFLAGS+= ${_COV_FLAG}
-.endif
.endif
.if ${MK_DEBUG_FILES} != "no"
More information about the svn-src-projects
mailing list