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

Allow running scheme with custom dynamic libraries on macOS #252

Merged
merged 11 commits into from
Oct 8, 2024

Conversation

f-f
Copy link
Collaborator

@f-f f-f commented Sep 22, 2024

Picking up custom paths for loading dynamic libraries through the DYLD_LIBRARY_PATH is not allowed in the latest macOS version when launching processes in the shell. So we go around this by looking up a custom variable and setting DYLD_LIBRARY_PATH when launching scheme instead - this works and lets us load dynamic libraries through the envvar instead of having to patch the binary's rpath.

@f-f f-f requested a review from anttih September 22, 2024 18:12
Copy link
Collaborator

@anttih anttih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to also update the flake?

src/Main.purs Show resolved Hide resolved
@f-f
Copy link
Collaborator Author

f-f commented Sep 30, 2024

I will attempt to update the flake - last time I tried patching the dynamic library loader on linux I didn't have much success, but let's see

@f-f f-f merged commit eacb8ef into master Oct 8, 2024
2 checks passed
@f-f f-f deleted the allow-dyld-libs-in-run branch October 8, 2024 18:30
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