Bug 276143 - multimedia/gpac-libgpac: fix build with clang 18
Summary: multimedia/gpac-libgpac: 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: freebsd-multimedia (Nobody)
URL:
Keywords:
Depends on:
Blocks: 276104
  Show dependency treegraph
 
Reported: 2024-01-06 11:39 UTC by Dimitry Andric
Modified: 2024-01-13 11:51 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (multimedia)


Attachments
multimedia/gpac-libgpac: fix build with clang 18 (1.04 KB, patch)
2024-01-06 11:40 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-06 11:39:50 UTC
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.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2024-01-06 11:40:51 UTC
Created attachment 247478 [details]
multimedia/gpac-libgpac: fix build with clang 18
Comment 2 Rene Ladan freebsd_committer freebsd_triage 2024-01-12 21:06:43 UTC
I'm not in multimedia@ but this looks like a trivial fix to me.
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-01-13 11:48:59 UTC
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(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-01-13 11:50:00 UTC
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(-)