summaryrefslogtreecommitdiffstats
path: root/sys/conf/kern.pre.mk
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-11-07 22:15:28 +0000
committerdim <dim@FreeBSD.org>2012-11-07 22:15:28 +0000
commitd691931d6ef7ee40e23716568c8a893977b3905f (patch)
tree575d5595fc296e70dd0dbcaa990f7a851bfe606a /sys/conf/kern.pre.mk
parent2e86daf6ac341d6133cfdfc77b6a2a4bf01172e5 (diff)
downloadFreeBSD-src-d691931d6ef7ee40e23716568c8a893977b3905f.zip
FreeBSD-src-d691931d6ef7ee40e23716568c8a893977b3905f.tar.gz
For kernel builds with PROFLEVEL >= 1, such as LINT, don't attempt to
use the -falign-functions option if the compiler is clang, as the flag is not supported. MFC after: 1 week
Diffstat (limited to 'sys/conf/kern.pre.mk')
-rw-r--r--sys/conf/kern.pre.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index 7e6e20a..cfcaa3b 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -102,7 +102,10 @@ CLANG_NO_IAS= -no-integrated-as
.endif
.if defined(PROFLEVEL) && ${PROFLEVEL} >= 1
-CFLAGS+= -DGPROF -falign-functions=16
+CFLAGS+= -DGPROF
+.if ${COMPILER_TYPE} != "clang"
+CFLAGS+= -falign-functions=16
+.endif
.if ${PROFLEVEL} >= 2
CFLAGS+= -DGPROF4 -DGUPROF
PROF= -pg -mprofiler-epilogue
OpenPOWER on IntegriCloud