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.
Created attachment 247478 [details] multimedia/gpac-libgpac: fix build with clang 18
I'm not in multimedia@ but this looks like a trivial fix to me.
A commit in branch main references this bug: 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(-)
A commit in branch 2024Q1 references this bug: 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(-)