From faa87e834fd3859834bda99caebaa718b344b73d Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Mon, 26 Jun 2023 01:33:24 +0200 Subject: [PATCH] math/lemon: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- math/lemon/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/math/lemon/Makefile b/math/lemon/Makefile index 81e0e02ab335..a695e8fc07c1 100644 --- a/math/lemon/Makefile +++ b/math/lemon/Makefile @@ -32,6 +32,12 @@ GLPK_DESC= Build with GLPK solver GLPK_CMAKE_BOOL= LEMON_ENABLE_GLPK GLPK_LIB_DEPENDS= libglpk.so:math/glpk +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CXXFLAGS+= -Dregister= +.endif + post-install: @${RM} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-0.x-to-1.x.sh