summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-11-07 22:45:34 +0000
committerdim <dim@FreeBSD.org>2012-11-07 22:45:34 +0000
commite71d46d66c5fb040495a869e6d998cd7e5fc2e3c (patch)
tree5c013e2dac1d53058033c345df1ded3d469d502f /sys/conf
parent8a90c2da05ea2c6cb174003addda933a1fa5da36 (diff)
downloadFreeBSD-src-e71d46d66c5fb040495a869e6d998cd7e5fc2e3c.zip
FreeBSD-src-e71d46d66c5fb040495a869e6d998cd7e5fc2e3c.tar.gz
For kernel builds with PROFLEVEL >= 2, such as LINT, don't attempt to
use the -mprofiler-epilogue option if the compiler is clang, as the flag is not supported. While here, fix up the value indentations. MFC after: 1 week
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/kern.pre.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index cfcaa3b..442eac9 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -108,9 +108,12 @@ CFLAGS+= -falign-functions=16
.endif
.if ${PROFLEVEL} >= 2
CFLAGS+= -DGPROF4 -DGUPROF
-PROF= -pg -mprofiler-epilogue
+PROF= -pg
+.if ${COMPILER_TYPE} != "clang"
+PROF+= -mprofiler-epilogue
+.endif
.else
-PROF= -pg
+PROF= -pg
.endif
.endif
DEFINED_PROF= ${PROF}
OpenPOWER on IntegriCloud