From 1ac9dec204b45f86c417aafb273874e3918cb3ce Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Wed, 26 Jul 2023 10:58:22 +0200 Subject: [PATCH] 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 916c006658412..9c968416088f0 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/