-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Dynamically change paths searched by dlopen() #3364
Comments
This would also be useful when dealing with things such as non-standard homebrew install paths, etc. I want to try to avoid setting |
I'm am about to start work on adding a (then I can automatically add ```brew --prefix |
|
Could we add a definition to |
No, we really want to avoid using dlopen. Also, I think it's probably better to have them in the global search path so that each usage of the library doesn't need to be aware of where the library came from. |
Okay. How do we load libraries if we don't use |
I'm working on seeing how that can be simplified. I'm currently trying implementing a function |
@staticfloat @JeffBezanson I have pushed a commit to implement this. Rather than open a pull request, I have just referenced the code here. Thoughts? Usage has two parts to it:
(edit: those functions are exported from Sys, not Base) |
This seems like a large improvement over previous methods. If you would rather have only a global namespace for DL_LOAD_PATH, I don't think there's anything to improve on here. |
It'd be nice to have a way to add libraries to have
dlopen
search. Something similar toLD_LIBRARY_PATH
, but internal to Julia. Possibly even just an array we can pass intodlopen
of additional prefixes to search, so that it's not a global thing. This would get rid of the currently kind of uglytry/catch
mess that we get in things like ext,jl in Tk.jl.The text was updated successfully, but these errors were encountered: