svn commit: r206082 - in head: . share/man/man7 share/mk sys/conf

Robert Watson rwatson at FreeBSD.org
Fri Apr 2 09:56:23 UTC 2010


On Fri, 2 Apr 2010, Alexander Leidinger wrote:

>  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).

Excellent -- I'm really glad to see this getting sorted out at last.

I think there's a reasonable argument that we should be compiling options 
KDTRACE_HOOKS into GENERIC, and likewise enabling CTF on the kernel by default 
in 9.x.  Part of the point of DTrace is that it "just works", and we already 
compile CDDL modules by default (and the hooks don't affect the license of the 
base kernel as far as I'm aware).  Any thoughts on this?

Robert


More information about the svn-src-head mailing list