git: bfdc17ca8006 - stable/15 - src.opts.mk: Comment about CTF & DTRACE relationship

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Mon, 08 Jun 2026 19:54:15 UTC
The branch stable/15 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=bfdc17ca8006773ca7efd8dec9d16f28a862dd0e

commit bfdc17ca8006773ca7efd8dec9d16f28a862dd0e
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-05-12 17:19:46 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-06-08 19:53:57 +0000

    src.opts.mk: Comment about CTF & DTRACE relationship
    
    WITH_CTF enables building userland components with CTF, and not the ctf*
    tools as one might expect.  The tools are actually included with the
    DTRACE knob.  Add a comment where the dependency is handled, as this has
    caused confusion.
    
    Reported by:    ivy
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D56977
    
    (cherry picked from commit f6178451eea5b1ce6802fbb0e6eceb555c7b4841)
---
 share/mk/src.opts.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index a0bf8c2d454f..f9fc2dad280a 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -431,6 +431,8 @@ MK_KERBEROS_SUPPORT:=	no
 MK_MITKRB5:=	no
 .endif
 
+# MK_DTRACE also gates ctf tools, so we cannot build userland with CTF
+# if it is off.
 .if ${MK_DTRACE} == "no"
 MK_CTF:=	no
 .endif