Re: git: 9b214a66ea87 - main - x11-toolkits/wxgtk32: fix build with lld 17
- In reply to: Dimitry Andric : "git: 9b214a66ea87 - main - x11-toolkits/wxgtk32: fix build with lld 17"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 Nov 2023 10:49:54 UTC
Hello Dimitry,
Will this commit be MFHed to quarterly?
Thanks
Dimitry Andric <dim@freebsd.org> escreveu no dia quinta, 9/11/2023 à(s)
19:50:
> The branch main has been updated by dim:
>
> URL:
> https://cgit.FreeBSD.org/ports/commit/?id=9b214a66ea8788a6da299139decf506a4b4f5ff1
>
> commit 9b214a66ea8788a6da299139decf506a4b4f5ff1
> Author: Dimitry Andric <dim@FreeBSD.org>
> AuthorDate: 2023-11-09 19:26:44 +0000
> Commit: Dimitry Andric <dim@FreeBSD.org>
> CommitDate: 2023-11-09 19:32:02 +0000
>
> x11-toolkits/wxgtk32: fix build with lld 17
>
> Building x11-toolkits/wxgtk32 with lld 17 results in the following link
> errors:
>
> ld: error: version script assignment of 'WXU_3.2.1' to symbol
> 'wxApp::GTKAllowDiagnosticsControl()' failed: symbol not defined
> ld: error: version script assignment of 'WXU_3.2.1' to symbol
> 'wxFileDialog::AddShortcut(const wxString&, int)' failed: symbol not defined
>
> Add -Wl,--undefined-version to LDFLAGS to suppress these errors, since
> wxWidgets reuses the same linker version script for all its shared
> libraries.
>
> PR: 273753
> Approved by: blanket (desktop)
> MFH: 2023Q4
> ---
> x11-toolkits/wxgtk32/Makefile | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/x11-toolkits/wxgtk32/Makefile b/x11-toolkits/wxgtk32/Makefile
> index 934fd79c649b..794704329f2a 100644
> --- a/x11-toolkits/wxgtk32/Makefile
> +++ b/x11-toolkits/wxgtk32/Makefile
> @@ -108,6 +108,11 @@ CONFIGURE_ARGS+=--disable-tls
> CONFIGURE_ARGS+=--disable-precomp-headers
> .endif
>
> +# wxWidgets uses the same linker version script for all its shared
> libraries, so
> +# some symbols are expectedly undefined. Suppress errors with lld >= 17
> due to
> +# these undefined symbols.
> +LDFLAGS+= -Wl,--undefined-version
> +
> post-build-NLS-on:
> @${DO_MAKE_BUILD} allmo -C ${BUILD_WRKSRC}/locale
>
>
--
Nuno Teixeira
FreeBSD Committer (ports)