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.
Created attachment 248093 [details] archivers/arj: fix build with clang 18
Approved. Thanks!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=f12119e85f5ac711d5a4537687fd924bfaca7692 commit f12119e85f5ac711d5a4537687fd924bfaca7692 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:44:44 +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 archivers/arj/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
A commit in branch 2024Q1 references this bug: 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(-)