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

Teach jl_load_dynamic_library() about @executable_path on all platforms #35627

Merged
merged 1 commit into from
May 14, 2020

Conversation

staticfloat
Copy link
Sponsor Member

It is useful for us to be able to hard-code a dynamic library's location
relative to that of the julia executable. We repurpose the
@executable_path component from MacOS, allowing all platforms to
perform executable-relative binary loading (I'm looking at you, Windows).

This is useful for the Julia binary to be able to find libraries within artifacts in #35193

src/dlload.c Outdated Show resolved Hide resolved
src/dlload.c Outdated Show resolved Hide resolved
@vtjnash vtjnash added the needs news A NEWS entry is required for this change label May 1, 2020
@vtjnash vtjnash added the needs docs Documentation for this change is required label May 4, 2020
@staticfloat staticfloat removed the needs news A NEWS entry is required for this change label May 4, 2020
@staticfloat
Copy link
Sponsor Member Author

I added a NEWS.md entry; I'm not sure where to put the docs for this, we don't seem to have any real docs for jl_load_dynamic_library().

@vchuravy
Copy link
Sponsor Member

vchuravy commented May 5, 2020

we don't seem to have any real docs for jl_load_dynamic_library().

Libdl.dlopen?

@JeffBezanson
Copy link
Sponsor Member

Needed in 1.5?

@staticfloat
Copy link
Sponsor Member Author

Not needed; will merge after 1.5 branches.

…tforms

It is useful for us to be able to hard-code a dynamic library's location
relative to that of the julia executable.  We repurpose the
`@executable_path` component from MacOS, allowing all platforms to
perform executable-relative binary loading (I'm looking at you, Windows).
@staticfloat staticfloat removed the needs docs Documentation for this change is required label May 14, 2020
@staticfloat staticfloat merged commit fb986a0 into master May 14, 2020
@staticfloat staticfloat deleted the sf/executable_path branch May 14, 2020 21: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.

None yet

6 participants