Skip to content

Draft: gconstructor: Disable constructors/destructors on muslc

Philip Withnall requested to merge pwithnall/glib:3160-musl-destructors into main

As per, muslc intentionally doesn’t call destructors during dlclose(). This is a significant behaviour difference from all other platforms we support, and it’s not something we can abstract away.

In particular, it breaks assumptions in the resources test about resources from modules being correctly unloaded when the module is unloaded.

Signed-off-by: Philip Withnall

Fixes: #3160

Closes #3160

Merge request reports