Bug 273981 - graphics/mesa-dri: fix build with lld 17
Summary: graphics/mesa-dri: fix build with lld 17
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-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks: 273753
  Show dependency treegraph
 
Reported: 2023-09-20 17:52 UTC by Dimitry Andric
Modified: 2023-09-20 20:24 UTC (History)
1 user (show)

See Also:
manu: maintainer-feedback+


Attachments
graphics/mesa-dri: fix build with lld 17 (751 bytes, patch)
2023-09-20 17:53 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 2023-09-20 17:52:46 UTC
Some symbols in mesa's linker version scripts are not always defined, depending on configuration options. Suppress errors with lld >= 17 due to these undefined symbols.

This applies to multiple mesa ports, such as mesa-dri, mesa-libs, mesa-gallium-*, etc.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2023-09-20 17:53:25 UTC
Created attachment 245072 [details]
graphics/mesa-dri: fix build with lld 17
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-09-20 20:24:12 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e8989d5d9e57043bed503e97339f16882513e4c0

commit e8989d5d9e57043bed503e97339f16882513e4c0
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-09-20 17:49:58 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-09-20 20:21:22 +0000

    graphics/mesa-dri: fix build with lld 17

    Some symbols in mesa's linker version scripts are not always defined,
    depending on configuration options. Suppress errors with lld >= 17 due
    to these undefined symbols.

    This applies to multiple mesa ports, such as mesa-dri, mesa-libs,
    mesa-gallium-*, etc. So add the LDFLAGS setting to Makefile.common.

    PR:             273981
    Approved by:    x11 (manu)
    MFH:            2023Q3

 graphics/mesa-dri/Makefile.common | 5 +++++
 1 file changed, 5 insertions(+)