Date: Tue, 03 Sep 2019 14:06:10 -0000 From: Enji Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r345834 - projects/runtime-coverage-v2/share/mk Message-ID: <201904030543.x335hW9b093336@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904030543.x335hW9b093336>