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

[macOS] Fix dynamic library lookup for system libraries. #96970

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Sep 13, 2024

System libraries that were under /usr/lib do not exist as physical files, but still loadable with dlopen.

New in macOS Big Sur 11.0.1, the system ships with a built-in dynamic linker cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail. Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache. (62986286)

@bruvzg bruvzg added this to the 4.4 milestone Sep 13, 2024
@bruvzg bruvzg requested a review from a team as a code owner September 13, 2024 16:34

Verified

This commit was signed with the committer’s verified signature.
Calinou Hugo Locurcio
@akien-mga akien-mga merged commit ebe8f36 into godotengine:master Sep 16, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants