git: 0fb33e049ac0 - main - bsd.cpu.mk: Add _CPUFLAGS to CXXFLAGS as well

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 21 Jan 2025 21:25:38 UTC
The branch main has been updated by imp:

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

commit 0fb33e049ac01ebe85a0bc2af670d4ac82df59c8
Author:     Norikatsu Shigemura <nork@FreeBSD.org>
AuthorDate: 2025-01-20 20:53:19 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-01-21 21:24:10 +0000

    bsd.cpu.mk: Add _CPUFLAGS to CXXFLAGS as well
    
    PR: 180365
    Reviewed by: imp
    Sponsored by: Netflix
---
 share/mk/bsd.cpu.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk
index 29eb4662dcdd..a2d4304f6245 100644
--- a/share/mk/bsd.cpu.mk
+++ b/share/mk/bsd.cpu.mk
@@ -350,6 +350,7 @@ CFLAGS += -march=rv64imafdc -mabi=lp64d
 
 .if !defined(NO_CPU_CFLAGS)
 CFLAGS += ${_CPUCFLAGS}
+CXXFLAGS += ${_CPUCFLAGS}
 .endif
 
 #