-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
prevent pkg-config from finding unrelated system libraries #12590
Conversation
Hm, ref #10010, it looks like this fails to find openssl in multilib compilation of 32 bit linux from 64 bit linux. That's better than a build/link failure, but may make testing https + libgit2 on 32 bit linux a little hard in the future. I can't seem to figure out how to get apt-get to install |
yeah, its likely this would break distributions, which may actually want to be using pkg-config (and would thus force them to unset / unexport this variable). failing to find openssl may actually be good, since if we're building generic linux binaries, then we really only want to find libs that will actually be on all target machines. |
Not quite. We bundle the openssl that is on the build machine. Ref #10763. No https on Linux without it, unfortunately. While there will almost always be a system version present on pretty much any Linux distribution, it's not guaranteed to be API or ABI compatible with the version we build libgit2 against on the buildbots. At least libgit2 can use native https on OS X and Windows. @nalimilan do you need this pkg-config variable to be set while building julia? Will this trigger an rpmlint warning or anything? |
Am I correct that it will break |
How would this break |
Ah, right, I forgot that we don't actually link to libgit2. So should be fine with me. |
@@ -160,6 +160,9 @@ BUILD_LLDB = 0 | |||
# Path to cmake (override in Make.user if needed) | |||
CMAKE ?= cmake | |||
|
|||
# Point pkg-config to only look at our libraries | |||
export PKG_CONFIG_LIBDIR = $(JULIAHOME)/usr/lib/pkgconfig | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, never mind, I see that that answer references the export
command in make
; I never knew about this one.
prevent pkg-config from finding unrelated system libraries
let's try this for a bit. if it turns out we need some |
Actually this does break when using |
fix #12514