From eaf1e0eb55fb1698ba771c9c716dbeceab1bf997 Mon Sep 17 00:00:00 2001 From: Jon Lanz Date: Fri, 29 May 2026 15:48:24 -0700 Subject: [PATCH] Link to dl for imgui's OpenGL3 backend. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit moonray_gui_v2 uses the dynamic linker API (dlopen/dlclose/dlerror) from libdl. The ASWF CI images for 2023–2025 all use GCC 11.2 (per VFX Reference Platform), but the linker flag --as-needed (the default on modern Linux distributions) causes libdl to be dropped when it is not listed as a direct dependency. Previously libdl was pulled in transitively by another linked library; with the libraries present in these images it is not, so it must be listed explicitly. Signed-off-by: Jon Lanz --- cmd/moonray_gui_v2/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/moonray_gui_v2/CMakeLists.txt b/cmd/moonray_gui_v2/CMakeLists.txt index cc57796..7c4a458 100644 --- a/cmd/moonray_gui_v2/CMakeLists.txt +++ b/cmd/moonray_gui_v2/CMakeLists.txt @@ -70,7 +70,7 @@ target_sources(${target} target_include_directories(${target} PRIVATE ${imgui_SOURCE_DIR}) if (NOT IsDarwinPlatform) - set(PlatformSpecificLibs atomic) + set(PlatformSpecificLibs atomic dl) endif() target_link_libraries(${target}