git: 299683ae32dd - main - lang/gnu-cobol: Fix ld error

From: Wen Heping <wen_at_FreeBSD.org>
Date: Fri, 23 Feb 2024 12:06:11 UTC
The branch main has been updated by wen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=299683ae32dd945383498c0e78c2a274a4c94258

commit 299683ae32dd945383498c0e78c2a274a4c94258
Author:     Marcin Cieślak <saper@saper.info>
AuthorDate: 2024-02-23 12:03:50 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2024-02-23 12:05:11 +0000

    lang/gnu-cobol: Fix ld error
    
    PR:             277229
    Reported by:    saper@saper.info
---
 lang/gnu-cobol/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lang/gnu-cobol/Makefile b/lang/gnu-cobol/Makefile
index 8690cf388b63..3cd6db52ef7e 100644
--- a/lang/gnu-cobol/Makefile
+++ b/lang/gnu-cobol/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	gnucobol
 PORTVERSION=	3.2
+PORTREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	GNU/gnucobol
 
@@ -17,6 +18,8 @@ LIB_DEPENDS=	libgmp.so:math/gmp \
 USES=		bdb gmake libtool ncurses tar:xz
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
+CONFIGURE_ENV=	MATH_LIBS=-lm
+
 TEST_TARGET=	check
 TEST_ENV=	TESTSUITEFLAGS=--jobs=${MAKE_JOBS_NUMBER}