git: ec7e7ee86847 - main - local.dirdeps-targets.mk include src.opts.mk

From: Simon J. Gerraty <sjg_at_FreeBSD.org>
Date: Mon, 14 Oct 2024 18:35:43 UTC
The branch main has been updated by sjg:

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

commit ec7e7ee868476e39980facdb0a69d9ae15e9b466
Author:     Simon J. Gerraty <sjg@FreeBSD.org>
AuthorDate: 2024-10-14 18:10:41 +0000
Commit:     Simon J. Gerraty <sjg@FreeBSD.org>
CommitDate: 2024-10-14 18:34:55 +0000

    local.dirdeps-targets.mk include src.opts.mk
    
    Include src.opts.mk to ensure we have options defined for when
    assessing dirdeps-options.
    
    Reviewed by:    stevek
---
 share/mk/local.dirdeps-targets.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/share/mk/local.dirdeps-targets.mk b/share/mk/local.dirdeps-targets.mk
index 00346cddeeee..d5dfc2e8a954 100644
--- a/share/mk/local.dirdeps-targets.mk
+++ b/share/mk/local.dirdeps-targets.mk
@@ -1,3 +1,7 @@
+.if !defined(MK_CLANG)
+.include "${SRCTOP}/share/mk/src.opts.mk"
+.endif
+
 .-include <${.PARSEFILE:S/local/site/}>
 
 DIRDEPS_TARGETS_DIRS ?= targets targets/pseudo targets/packages