[fix] restore Linux connections and reflect actual autostart state

This commit is contained in:
dijunkun
2026-11-09 16:18:01 +08:00
parent 4f37422317
commit d3fd9d0209
5 changed files with 49 additions and 10 deletions
+6
View File
@@ -47,6 +47,12 @@ function setup_platform_settings()
add_cxflags("/WX")
set_runtimes("MT")
elseif is_os("linux") then
-- MiniRTC carries its own static GLib/GIO. System GTK and AT-SPI must
-- keep using the system runtime, including its separate GType registry.
-- Partial ELF interposition otherwise registers GCancellable twice and
-- leaves ICE stream initialization stuck in g_once_init_enter().
add_ldflags("-Wl,--exclude-libs,libgio-2.0.a:libgobject-2.0.a:libgthread-2.0.a:libgmodule-2.0.a:libglib-2.0.a:libffi.a",
{force = true})
add_requires("pkgconfig::atspi-2", {alias = "atspi", system = true, optional = true})
add_links("pulse-simple", "pulse")
add_requires("libyuv")