Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 2024 11:49:35 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: 74d5c907fed3 - 2024Q1 - multimedia/gpac-libgpac: fix build with clang 18
Message-ID:  <202401131149.40DBnZtI004496@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=74d5c907fed3d518be93dacc31af85451c18be2d

commit 74d5c907fed3d518be93dacc31af85451c18be2d
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2024-01-06 08:43:34 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2024-01-13 11:49:13 +0000

    multimedia/gpac-libgpac: fix build with clang 18
    
    Clang 18 no longer accepts -export-dynamic, which is a linker option,
    resulting in an error building multimedia/gpac-libgpac:
    
      cc: error: unknown argument: '-export-dynamic'
    
    Fix this by using the correct spelling, -Wl,--export-dynamic.
    
    PR:             276143
    MFH:            2024Q1
    (cherry picked from commit a235c289356ba567b7c44591216564c73505cf03)
---
 multimedia/gpac-libgpac/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/multimedia/gpac-libgpac/Makefile b/multimedia/gpac-libgpac/Makefile
index 6a2b24831498..bf4898320dd4 100644
--- a/multimedia/gpac-libgpac/Makefile
+++ b/multimedia/gpac-libgpac/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	gpac
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.0.0
-PORTREVISION=	2
+PORTREVISION=	3
 PORTEPOCH=	1
 CATEGORIES=	multimedia
 PKGNAMESUFFIX=	-libgpac
@@ -56,7 +56,8 @@ PNG_CONFIGURE_OFF=	--use-png=no
 
 post-patch:
 	${REINPLACE_CMD} -e 's|s/\.\*\\(\[0-9\]\\)\\+\$$/\\1/|s/^[^0-9]*//| ;\
-		/CFLAGS=/s/-O3//' ${WRKSRC}/configure
+		/CFLAGS=/s/-O3// ; s/-export-dynamic/-Wl,--export-dynamic/' \
+		${WRKSRC}/configure
 
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/gpac.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig



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