summaryrefslogtreecommitdiffstats
path: root/sys/conf/kern.pre.mk
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-07-13 19:36:14 +0000
committerbde <bde@FreeBSD.org>2002-07-13 19:36:14 +0000
commitd738702902195501104503bce0a5b7e76170523c (patch)
tree190dab1e55362079eccb9f8e5bccd9369f6dbd35 /sys/conf/kern.pre.mk
parent9c6596bcd6435686141c1a7b6111b116fa90a57c (diff)
downloadFreeBSD-src-d738702902195501104503bce0a5b7e76170523c.zip
FreeBSD-src-d738702902195501104503bce0a5b7e76170523c.tar.gz
Moved the setting of all profiling-related variables except the key one
(PROFLEVEL) to kern.pre.mk so that it is easier to manage. Bumped config version to match. Moved the check for cputype being configured to a less bogus place in mkmakefile.c.
Diffstat (limited to 'sys/conf/kern.pre.mk')
-rw-r--r--sys/conf/kern.pre.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index 946ef2d..3e213c7 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -49,6 +49,11 @@ ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${CFLAGS}
# then it might break building of utilities.
CFLAGS+= ${FMT}
+.if defined(PROFLEVEL) && ${PROFLEVEL} >= 1
+IDENT= -DGPROF
+PROF= -pg
+.endif
+
DEFINED_PROF= ${PROF}
.if defined(PROF)
CFLAGS+= -falign-functions=16
OpenPOWER on IntegriCloud