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
Please provide Libs.private in the .pc for static link #719
Comments
|
This issue is a blocker for Tor building statically with zstd support; see also https://trac.torproject.org/projects/tor/ticket/22550 |
|
I think the diagnosis above may be incorrect, however. The Libs.private line is supposed to contain the list of libraries used by the static library, not the library itself. |
|
@nmathewson |
|
It seems from the web search that pkgconfig is broken on the conceptual level, because it doesn't allow static library detection. I didn't realize this when I wrote the OP. You should develop the cmake module instead, as cmake seems to be more conceptually sound. |
|
Here is what I could gather regarding
It seems unrelated to your issue (build statically with zstd). |
It doesn't appear that .pc can be fixed for the static build. One option is to have two .pc files: zstd.pc and zstd-static.pc. Tor IMO should use autotools instead of pkgconfig in this instance. |
|
I think I misdiagnosed the problem. /usr/local/lib/libzstd.a is stripped when installed from the centrally built package for some reason. This is why tor failed, not because of pkg-config. |
pkg-config --static --libs libzstdshould return the .a library, like this ``/usr/local/lib/libzstd.a```For this .pc file should contain such line:
The text was updated successfully, but these errors were encountered: