Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:06:50 -0000
From:      Enji Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r346193 - projects/runtime-coverage-v2/share/mk
Message-ID:  <201904132332.x3DNWSIR037577@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Sat Apr 13 23:32:28 2019
New Revision: 346193
URL: https://svnweb.freebsd.org/changeset/base/346193

Log:
  Port MK_COVERAGE changes over to bsd.lib.mk

Modified:
  projects/runtime-coverage-v2/share/mk/bsd.lib.mk

Modified: projects/runtime-coverage-v2/share/mk/bsd.lib.mk
==============================================================================
--- projects/runtime-coverage-v2/share/mk/bsd.lib.mk	Sat Apr 13 23:26:02 2019	(r346192)
+++ projects/runtime-coverage-v2/share/mk/bsd.lib.mk	Sat Apr 13 23:32:28 2019	(r346193)
@@ -206,8 +206,9 @@ _SHLIBDIR:=${SHLIBDIR}
 .if ${MK_DEBUG_FILES} != "no"
 SHLIB_NAME_FULL=${SHLIB_NAME}.full
 .if ${MK_COVERAGE} != "no"
-COVERAGEFILEDIR=${COVERAGEDIR}${_SHLIBDIR}
-.if !exists(${DESTDIR}${COVERAGEFILEDIR})
+_COV_FLAG= --coverage -fprofile-dir=${COVERAGEDIR}
+_COVERAGEDIR=${COVERAGEDIR}${_SHLIBDIR}
+.if !exists(${DESTDIR}${_COVERAGEDIR})
 COVERAGEMKDIR=
 .endif
 .endif
@@ -457,11 +458,11 @@ _libinstall:
 .if ${MK_DEBUG_FILES} != "no"
 .if ${MK_COVERAGE} != "no"
 .if defined(COVERAGEMKDIR)
-	${INSTALL} ${TAG_ARGS:D${TAG_ARGS},coverage} -d ${DESTDIR}${COVERAGEFILEDIR}/
+	${INSTALL} ${TAG_ARGS:D${TAG_ARGS},coverage} -d ${DESTDIR}${_COVERAGEDIR}/
 .endif
 	${INSTALL} ${TAG_ARGS:D${TAG_ARGS},coverage} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
 	    ${_INSTALLFLAGS} \
-	    ${SHLIB_NAME}.full ${DESTDIR}${COVERAGEFILEDIR}/${SHLIB_NAME}
+	    ${SHLIB_NAME}.full ${DESTDIR}${_COVERAGEDIR}/${SHLIB_NAME}
 .endif
 .if defined(DEBUGMKDIR)
 	${INSTALL} ${TAG_ARGS:D${TAG_ARGS},debug} -d ${DESTDIR}${DEBUGFILEDIR}/





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904132332.x3DNWSIR037577>