summaryrefslogtreecommitdiffstats
path: root/sys/conf/kern.mk
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2010-04-02 06:55:31 +0000
committernetchild <netchild@FreeBSD.org>2010-04-02 06:55:31 +0000
commite14ccde629ef57d3eb9b2e301b0789029e6ba32d (patch)
treea328b94a6cba383d7a03a4da5cb2becf2d12be03 /sys/conf/kern.mk
parent1edbfe1bf0f2aa5129e857b93c974d7b8b98d889 (diff)
downloadFreeBSD-src-e14ccde629ef57d3eb9b2e301b0789029e6ba32d.zip
FreeBSD-src-e14ccde629ef57d3eb9b2e301b0789029e6ba32d.tar.gz
WITH_CTF can now be specified in src.conf (not recommended, there
are some problems with static executables), make.conf (would also affect ports which do not use GNU make and do not override the compile targets) or in the kernel config (via "makeoptions WITH_CTF=yes"). Additional (related) changes: - propagate WITH_CTF to module builds - do not add -g to the linker flags, it's a noop there anyway (at least according to the man page of ld) - do not add -g to CFLAGS unconditionally we need to have a look if it is really needed (IMO not) or if there is a way to add it only when WITH_CTF is used Note: ctfconvert / ctfmerge lines will not appear in the build output, to protect the innocent (those which do not build with WITH_CTF would see the shell-test and may think WITH_CTF is used). Reviewed by: imp, jhb, scottl (earlier version) Discussed on: arch@
Diffstat (limited to 'sys/conf/kern.mk')
-rw-r--r--sys/conf/kern.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 0f5cd66..7e23a80 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -108,3 +108,11 @@ CFLAGS+= -restrict
${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips"
CFLAGS+= -fstack-protector
.endif
+
+#
+# Enable CTF conversation on request.
+#
+.if defined(WITH_CTF)
+.undef NO_CTF
+.endif
+
OpenPOWER on IntegriCloud