git: dacc9b513453 - main - games/freeciv: properly link with libiconv (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Thu, 27 Oct 2022 22:55:40 UTC
The branch main has been updated by fluffy:

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

commit dacc9b51345392cecd7253f660af4670a5b6acd7
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2022-10-27 22:52:07 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2022-10-27 22:52:07 +0000

    games/freeciv: properly link with libiconv (+)
    
    By default, Mk/Uses/iconv.mk do not add ICONV_LIB to LDFLAGS.
    Pass it via port Makefile
    
    Reported by:    Bob Melson via email
---
 games/freeciv/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/games/freeciv/Makefile b/games/freeciv/Makefile
index 72da01fc47f8..f7070e3572f2 100644
--- a/games/freeciv/Makefile
+++ b/games/freeciv/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	freeciv
 PORTVERSION=	3.0.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	games
 MASTER_SITES=	SF/freeciv/Freeciv%20${PORTVERSION:R}/${PORTVERSION} \
 		http://files.freeciv.org/stable/
@@ -30,7 +30,7 @@ CONFIGURE_ARGS=	${ICONV_CONFIGURE_ARG} \
 		--enable-mapimg=no \
 		--enable-shared
 
-LDFLAGS+=	-Wl,--as-needed
+LDFLAGS+=	-Wl,--as-needed ${ICONV_LIB}
 
 PORTDATA=	*