Draft: gconstructor: Disable constructors/destructors on muslc
As per
https://wiki.musl-libc.org/functional-differences-from-glibc.html#Unloading_libraries,
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 philip@tecnocode.co.uk
Fixes: #3160
Closes #3160