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

Set an RPATH on all libraries requiring fortran in binary-dist #17901

Merged
merged 1 commit into from
Aug 10, 2016

Conversation

Keno
Copy link
Member

@Keno Keno commented Aug 8, 2016

@tkelman see if this is what you had in mind

@tkelman tkelman added building Build system, or building Julia or its dependencies backport pending 0.5 labels Aug 8, 2016
cd $private_libdir
for file in openlibm quadmath gfortran openblas arpack lapack openspecfun; do
for dylib in $(ls lib$file*.so* 2>/dev/null); do
patchelf --set-rpath \$ORIGIN $dylib
Copy link
Contributor

Choose a reason for hiding this comment

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

do we have the PATCHELF exported in a way that would propagate? someone might have it somewhere else, but I guess that's a second-order concern here

Copy link
Member

Choose a reason for hiding this comment

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

yes, we build patchelf ourself and call it $(PATCHELF)

Copy link
Member Author

Choose a reason for hiding this comment

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

That variable is only set in deps/, if you feel like rearranging things and threading it through, be my guest, but this code catches patchelf globally or in usr/tools, so I don't really see the need to do the extra work to make it work with an override PATCHELF.

@tkelman
Copy link
Contributor

tkelman commented Aug 8, 2016

This should help, thanks

@Keno
Copy link
Member Author

Keno commented Aug 8, 2016

Somebody could override it, I suppose, but would such a somebody be making binary-dists, who knows. I don't think I particularly care.

@tkelman tkelman merged commit 8615732 into master Aug 10, 2016
@tkelman tkelman deleted the kf/fortranrpath branch August 10, 2016 07:17
tkelman pushed a commit that referenced this pull request Aug 11, 2016
@tkelman tkelman mentioned this pull request Aug 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build system, or building Julia or its dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants