summaryrefslogtreecommitdiffstats
path: root/share/mk/sys.mk
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2015-04-08 02:43:05 +0000
committermarkj <markj@FreeBSD.org>2015-04-08 02:43:05 +0000
commitee504eba70df48b00316e0d98715bb8a36e1755f (patch)
tree015f02a4270c2fc4e9a411af0c6847a9f1ffd864 /share/mk/sys.mk
parent1d6ffde4f49799c1d95f31875779237c214fc09c (diff)
downloadFreeBSD-src-ee504eba70df48b00316e0d98715bb8a36e1755f.zip
FreeBSD-src-ee504eba70df48b00316e0d98715bb8a36e1755f.tar.gz
Add a DTRACEFLAGS variable, which can be used to pass additional variables
to dtrace(1) invocations during a build. This change includes -C in the default flags, which has dtrace(1) run input scripts through the preprocessor. While here, sort the definitions of CP and CPP in sys.mk. Differential Revision: https://reviews.freebsd.org/D2204 Reviewed by: imp, rpaulo (previous revision)
Diffstat (limited to 'share/mk/sys.mk')
-rw-r--r--share/mk/sys.mk14
1 files changed, 8 insertions, 6 deletions
diff --git a/share/mk/sys.mk b/share/mk/sys.mk
index 05f5b19..62ede89 100644
--- a/share/mk/sys.mk
+++ b/share/mk/sys.mk
@@ -62,17 +62,18 @@ CFLAGS += -fno-strict-aliasing
.endif
PO_CFLAGS ?= ${CFLAGS}
+# cp(1) is used to copy source files to ${.OBJDIR}, make sure it can handle
+# read-only files as non-root by passing -f.
+CP ?= cp -f
+
+CPP ?= cpp
+
# C Type Format data is required for DTrace
CTFFLAGS ?= -L VERSION
CTFCONVERT ?= ctfconvert
CTFMERGE ?= ctfmerge
-# cp(1) is used to copy source files to ${.OBJDIR}, make sure it can handle
-# read-only files as non-root by passing -f.
-CP ?= cp -f
-
-DTRACE ?= dtrace
.if defined(CFLAGS) && (${CFLAGS:M-g} != "")
CTFFLAGS += -g
.endif
@@ -81,7 +82,8 @@ CXX ?= c++
CXXFLAGS ?= ${CFLAGS:N-std=*:N-Wnested-externs:N-W*-prototypes:N-Wno-pointer-sign:N-Wold-style-definition}
PO_CXXFLAGS ?= ${CXXFLAGS}
-CPP ?= cpp
+DTRACE ?= dtrace
+DTRACEFLAGS ?= -C -x nolibs
.if empty(.MAKEFLAGS:M-s)
ECHO ?= echo
OpenPOWER on IntegriCloud