git: f12119e85f5a - main - archivers/arj: fix build with clang 18

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Wed, 31 Jan 2024 18:45:34 UTC
The branch main has been updated by dim:

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

commit f12119e85f5ac711d5a4537687fd924bfaca7692
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2024-01-31 17:30:24 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2024-01-31 18:44:44 +0000

    archivers/arj: fix build with clang 18
    
    Clang 18 no longer accepts -export-dynamic, which is a linker option,
    resulting in an error building archivers/arj:
    
      cc: error: unknown argument: '-export-dynamic'
    
    Fix this by using the correct spelling, -Wl,--export-dynamic.
    
    PR:             276747
    Approved by:    garga (maintainer)
    MFH:            2024Q1
---
 archivers/arj/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/archivers/arj/Makefile b/archivers/arj/Makefile
index b3ac16992d56..babaeae0ee45 100644
--- a/archivers/arj/Makefile
+++ b/archivers/arj/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	arj
 PORTVERSION=	3.10.22
-PORTREVISION=	11
+PORTREVISION=	12
 CATEGORIES=	archivers
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/2.78_3.10%20build%2022:source \
 		DEBIAN_POOL:patch
@@ -61,6 +61,7 @@ post-patch:
 		 ${WRKSRC}/arj.c ${WRKSRC}/file_reg.c ${WRKSRC}/rearj.c
 	@${REINPLACE_CMD} -e 's!-O2!!' -e 's!ALIGN_POINTERS!&,1,desc!' \
 		-e 's!USE_COLORS!&,1,desc!' -e '/LD_STRIP=/d' \
+		-e 's|-export-dynamic|-Wl,--export-dynamic|' \
 		${WRKSRC}/gnu/configure.in
 	@${REINPLACE_CMD} -e 's!^static !!' ${WRKSRC}/integr.c