git: 42758da17ebd - main - devel/gcc-msp430-ti-toolchain: Fix build on 14

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 17 Aug 2023 18:34:35 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=42758da17ebd03d53b0b28ccdf43932fcfde1cce

commit 42758da17ebd03d53b0b28ccdf43932fcfde1cce
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-17 18:33:30 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-17 18:34:20 +0000

    devel/gcc-msp430-ti-toolchain: Fix build on 14
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 devel/gcc-msp430-ti-toolchain/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/devel/gcc-msp430-ti-toolchain/Makefile b/devel/gcc-msp430-ti-toolchain/Makefile
index 51081d9c1a87..96dfc543e903 100644
--- a/devel/gcc-msp430-ti-toolchain/Makefile
+++ b/devel/gcc-msp430-ti-toolchain/Makefile
@@ -97,6 +97,10 @@ CONFIGURE_ARGS_COMMON=	--prefix=${INTERIM_PREFIX} \
 CFLAGS+=       -Wno-error=int-conversion
 .endif
 
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+USE_GCC=	yes:build
+.endif
+
 pre-patch:
 	@${ECHO_MSG} "===> Apply distribution patches..."
 	@${ECHO_MSG} "====> Patch gcc"