git: 8bb7b159b5b8 - stable/13 - src.opts.mk: Add WITHOUT_CXX dependencies

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Mon, 29 Nov 2021 15:11:26 UTC
The branch stable/13 has been updated by emaste:

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

commit 8bb7b159b5b892ab8bf597203690434309691860
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2021-10-29 01:43:33 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2021-11-29 15:10:53 +0000

    src.opts.mk: Add WITHOUT_CXX dependencies
    
    OFED, OPENMP, and PMC depend on C++ support.  Force them off when
    building WITHOUT_CXX.
    
    Reported by:    Michael Dexter, Build Option Survey
    Reviewed by:    imp, jrtc27
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D32730
    
    (cherry picked from commit 0e1c864898c1803835b1be0d59342ca761051db8)
---
 share/mk/src.opts.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index 9c1138a446ca..d692b7efe58b 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -395,6 +395,9 @@ MK_KERBEROS_SUPPORT:=	no
 .if ${MK_CXX} == "no"
 MK_CLANG:=	no
 MK_GOOGLETEST:=	no
+MK_OFED:=	no
+MK_OPENMP:=	no
+MK_PMC:=	no
 MK_TESTS:=	no
 .endif