Skip to content

Link to dl for imgui's OpenGL3 backend.#6

Open
jlanz wants to merge 1 commit into
OpenMoonRay:mainfrom
dreamworksanimation:jlanz/link-to-dl
Open

Link to dl for imgui's OpenGL3 backend.#6
jlanz wants to merge 1 commit into
OpenMoonRay:mainfrom
dreamworksanimation:jlanz/link-to-dl

Conversation

@jlanz

@jlanz jlanz commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

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.

Fixes OpenMoonRay/openmoonray#246

Assisted-by: GitHub Copilot / Sonnet 4.6

Signed-off-by: Jon Lanz [email protected]

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 <[email protected]>
@jlanz jlanz requested a review from a team June 1, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

moonray_gui_v2 needs to link libdl explicitly for imGui OpenGL backend

1 participant