mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
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
This commit is contained in:
parent
5c5004d1d1
commit
a235c28935
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue