git: 1ac9dec204b4 - main - cad/tochnog: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 26 Jul 2023 09:40:21 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1ac9dec204b45f86c417aafb273874e3918cb3ce

commit 1ac9dec204b45f86c417aafb273874e3918cb3ce
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-26 08:58:22 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-26 09:40:11 +0000

    cad/tochnog: Fix build with llvm16
    
    Sponsored by:   The FreeBSD Foundation
---
 cad/tochnog/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cad/tochnog/Makefile b/cad/tochnog/Makefile
index 916c00665841..9c968416088f 100644
--- a/cad/tochnog/Makefile
+++ b/cad/tochnog/Makefile
@@ -46,6 +46,10 @@ ALL_TARGET=	freebsd_old
 LIB_DEPENDS+=	libsuperlu.so:math/superlu
 SUPERLU=	superlu
 
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CPPFLAGS+=  -Dregister=
+.endif
+
 post-extract:
 .for sup in gid tools test
 	${MV} ${WRKDIR}/${sup} ${WRKDIR}/Sources/