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

Review RPATH in *link section of specs file for gcc-7 #1

Open
drbenmorgan opened this issue Mar 20, 2019 · 0 comments
Open

Review RPATH in *link section of specs file for gcc-7 #1

drbenmorgan opened this issue Mar 20, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@drbenmorgan
Copy link
Member

Full reproduction details are supplied in SuperNEMO-DBD/brew#9

The core issue is to review these lines in the gcc@7 formula:

*link_libgcc:
#{glibc_installed ? "-nostdlib -L#{libgcc}" : "+"} -L#{libdir} -L#{HOMEBREW_PREFIX}/lib
*link:
+ --dynamic-linker #{HOMEBREW_PREFIX}/lib/ld.so -rpath #{libdir} -rpath #{HOMEBREW_PREFIX}/lib

It appears to be the last -rpath entry that causes the issue, overriding any local build setting of the RPATH as it appears before any of the settings for the build. Hence, Home-brew installed libs always override local libs.

A brief test with a local specs file suggests that removing the last -rpath entry resolves that issue, but introduces new errors because some libraries are then not found.

To be investigated further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant