diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-11-09 20:26:44 +0100 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-11-09 20:32:02 +0100 |
commit | 9b214a66ea8788a6da299139decf506a4b4f5ff1 (patch) | |
tree | 5fd142afd0048f2f26b727ae1bb188352343714a | |
parent | x11-toolkits/wxgtk30: fix build with lld 17 (diff) |
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
-rw-r--r-- | x11-toolkits/wxgtk32/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
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 |