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 SEARCH_PATH to be extended with LD_LIBRARY_PATH and DYLD_LIBRAR… #1059

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

glenndavy
Copy link

I'm hoping this might help address issues like #923.

Using Nix (on darwin) I often hit issues (particularly with libraries like vips that require ffi) where glib etc can't be found. By setting up one of the standard paths like LD_LIBRARY path or DYLD_LIBRARY_PATH I should be able to move past this, however FFI only looks i a few standard places for libraries. This patch should provide an easy way past this.

@eregon
Copy link
Collaborator

eregon commented Nov 9, 2023

dlopen() should already consider those if you specify a library name, e.g. m and not libm.so or so.

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.

None yet

2 participants