Date: Mon, 6 Nov 2017 01:38:04 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r325464 - projects/runtime-coverage/share/mk Message-ID: <201711060138.vA61c4Ra087449@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Mon Nov 6 01:38:04 2017 New Revision: 325464 URL: https://svnweb.freebsd.org/changeset/base/325464 Log: Try a subtley different approach to the .pico and .ppico rules Only append the _COV_FLAG in the .pico rules in an inline format. Filtering them out with -N doesn't seem to be working Modified: projects/runtime-coverage/share/mk/bsd.lib.mk Modified: projects/runtime-coverage/share/mk/bsd.lib.mk ============================================================================== --- projects/runtime-coverage/share/mk/bsd.lib.mk Mon Nov 6 01:00:52 2017 (r325463) +++ projects/runtime-coverage/share/mk/bsd.lib.mk Mon Nov 6 01:38:04 2017 (r325464) @@ -79,8 +79,6 @@ _WANTS_DEBUG= .if defined(_WANTS_DEBUG) && ${MK_COVERAGE} != "no" && defined(SHLIB_NAME) && \ ${COMPILER_FEATURES:Mc++11} _COV_FLAG= --coverage -fprofile-dir=${COVERAGEDIR} -SHARED_CFLAGS+= ${_COV_FLAG} -SHARED_CXXFLAGS+= ${_COV_FLAG} .endif .include <bsd.libnames.mk> @@ -104,21 +102,21 @@ PO_FLAG=-pg ${CTFCONVERT_CMD} .c.pico: - ${CC} ${PICFLAG} -DPIC ${SHARED_CFLAGS} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} + ${CC} ${PICFLAG} -DPIC ${SHARED_CFLAGS} ${_COV_FLAG} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} ${CTFCONVERT_CMD} .c.ppico: - ${CC} ${PICFLAG} -DPIC ${SHARED_CFLAGS:N${_COV_FLAG}} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} + ${CC} ${PICFLAG} -DPIC ${SHARED_CFLAGS} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} ${CTFCONVERT_CMD} .cc.po .C.po .cpp.po .cxx.po: ${CXX} ${PO_FLAG} ${STATIC_CXXFLAGS} ${PO_CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET} .cc.pico .C.pico .cpp.pico .cxx.pico: - ${CXX} ${PICFLAG} -DPIC ${SHARED_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET} + ${CXX} ${PICFLAG} -DPIC ${SHARED_CXXFLAGS} ${_COV_FLAG} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET} .cc.ppico .C.ppico .cpp.ppico .cxx.ppico: - ${CXX} ${PICFLAG} -DPIC ${SHARED_CXXFLAGS:N${_COV_FLAG}} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET} + ${CXX} ${PICFLAG} -DPIC ${SHARED_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET} .f.po: ${FC} -pg ${FFLAGS} -o ${.TARGET} -c ${.IMPSRC}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711060138.vA61c4Ra087449>