Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link the main library with -Wl,-z,nodelete to prevent unloading #2934

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

kleisauke
Copy link
Member

@lovell
Copy link
Member

lovell commented Jul 20, 2022

The musl libc already (correctly) considers dlclose a no-op, so this change will bring glibc-based flavours of Linux up to par. This should also remove a problem in sharp for people using it with Node.js "worker threads", which uses reference counting before calling dlclose but can end up doing so too early on a child thread rather than the parent thread.

kleisauke added a commit to kleisauke/libvips-packaging that referenced this pull request Jul 20, 2022
@kleisauke kleisauke deleted the z-nodelete branch July 20, 2022 14:07
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.

3 participants