git: a235c289356b - main - multimedia/gpac-libgpac: fix build with clang 18
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 13 Jan 2024 11:48:10 UTC
The branch main has been updated by dim:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a235c289356ba567b7c44591216564c73505cf03
commit a235c289356ba567b7c44591216564c73505cf03
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:47:19 +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
---
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