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

Add a "static" configuration that uses static linking on macOS #7

Merged
merged 2 commits into from
Jul 18, 2024

Conversation

s-ludwig
Copy link
Contributor

The dlopen() call fails on the latest macOS versions:

dlopen(CoreServices.framework/Versions/A/CoreServices, 0x0002): tried: 'CoreServices.framework/Versions/A/CoreServices' (no such file), '/System/Volumes/Preboot/Cryptexes/OSCoreServices.framework/Versions/A/CoreServices' (no such file), '/usr/lib/CoreServices.framework/Versions/A/CoreServices' (no such file, not in dyldcache), 'CoreServices.framework/Versions/A/CoreServices' (no such file)

Using the "-framework CoreServices" linker flag statically links against the CoreServices framework instead, which should be the best approach for most applications.

s-ludwig added 2 commits July 18, 2024 09:45
The dlopen() call fails on the latest macOS versions:

    dlopen(CoreServices.framework/Versions/A/CoreServices, 0x0002): tried: 'CoreServices.framework/Versions/A/CoreServices' (no such file), '/System/Volumes/Preboot/Cryptexes/OSCoreServices.framework/Versions/A/CoreServices' (no such file), '/usr/lib/CoreServices.framework/Versions/A/CoreServices' (no such file, not in dyldcache), 'CoreServices.framework/Versions/A/CoreServices' (no such file)

Using the "-framework CoreServices" linker flag statically links agains the CoreServices framework instead, which should be the best approach for most applications.
@FreeSlave FreeSlave merged commit b31da89 into FreeSlave:master Jul 18, 2024
7 checks passed
@s-ludwig s-ludwig deleted the osx_static_framework branch July 18, 2024 11:45
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.

2 participants