From b057fd4a407f8449121c53d637a6f372a27696fc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 25 Aug 2021 23:31:45 +0200 Subject: [PATCH] Fix wx-config --libs output for static monolithic build Include all extra libraries we need (except for OpenGL ones, as there is still a separate library for it, even in monolithic build) in wx-config --libs output for static monolithic build as the application (may) need all of them, as all the libraries are part of the single monolithic one in this case. It seems that we had an attempt to fix this as far back as in 5719eab2bf (Fix missing 3rd party builtin libs for static monolithic builds., 2006-09-17), but it was insufficient as it didn't take the dependencies of the other GUI libraries (e.g. "media") into account. Closes #19175. --- wx-config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wx-config.in b/wx-config.in index 441f88ce92..e3f7d115bb 100755 --- a/wx-config.in +++ b/wx-config.in @@ -1218,7 +1218,7 @@ if is_monolithic; then # We still need the core lib deps for a static build though if is_static; then link_deps="${libdir}/libwx_@TOOLCHAIN_NAME@.a" - wx_libs="$wx_libs $link_deps $ldlibs_core $ldlibs_base" + wx_libs="$wx_libs $link_deps $ldlibs_html $ldlibs_media $ldlibs_stc $ldlibs_webview $ldlibs_core $ldlibs_xml $ldlibs_base" else wx_libs="$wx_libs -lwx_@TOOLCHAIN_NAME@" fi