Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2024 18:49:31 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: de9c761bd358 - 2024Q1 - archivers/arj: fix build with clang 18
Message-ID:  <202401311849.40VInVa1080233@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2024Q1 has been updated by dim:

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

commit de9c761bd3582ae6484a58e59f0433cd305f1102
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:49:09 +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
    
    (cherry picked from commit f12119e85f5ac711d5a4537687fd924bfaca7692)
---
 archivers/arj/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/archivers/arj/Makefile b/archivers/arj/Makefile
index 75aeb3c65d76..9e3427cf867d 100644
--- a/archivers/arj/Makefile
+++ b/archivers/arj/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	arj
 PORTVERSION=	3.10.22
-PORTREVISION=	9
+PORTREVISION=	10
 CATEGORIES=	archivers
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/2.78_3.10%20build%2022:source \
 		DEBIAN_POOL:patch
@@ -60,6 +60,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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401311849.40VInVa1080233>