Bug 276747 - archivers/arj: fix build with clang 18
Summary: archivers/arj: fix build with clang 18
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Renato Botelho
URL:
Keywords:
Depends on:
Blocks: 276104
  Show dependency treegraph
 
Reported: 2024-01-31 17:30 UTC by Dimitry Andric
Modified: 2024-01-31 18:55 UTC (History)
0 users

See Also:
garga: maintainer-feedback+


Attachments
archivers/arj: fix build with clang 18 (990 bytes, patch)
2024-01-31 17:32 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer freebsd_triage 2024-01-31 17:30:56 UTC
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.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2024-01-31 17:32:33 UTC
Created attachment 248093 [details]
archivers/arj: fix build with clang 18
Comment 2 Renato Botelho freebsd_committer freebsd_triage 2024-01-31 17:56:15 UTC
Approved.  Thanks!
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-01-31 18:46:14 UTC
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(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-01-31 18:50:18 UTC
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(-)