-
Notifications
You must be signed in to change notification settings - Fork 526
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
autotools: generated libssh2.pc
file broken
#1113
Labels
Comments
Checked curl; there is an elaborate custom script there to detect OpenSSL: https://github.com/curl/curl/blob/3b3c41f9337779723d0236c74c3fba14776dc702/m4/curl-openssl.m4#L28 Also for libssh2 we only need |
vszakats
changed the title
Generated pc (package config) file is broken with autotools
Generated Apr 3, 2024
libssh2.pc
file broken with autotools
vszakats
changed the title
Generated
autotools: generated Apr 3, 2024
libssh2.pc
file broken with autotoolslibssh2.pc
file broken
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using the autotools build system with libssh 1.11, and OpenSSL 3
the generated pc file looks like this:
It includes
-lssl
and-lcrypto
, which is wrong in two ways:-L
flag is missing if OpenSSL is in an non-default directory;@LIBS@
in pc file #1114]Compare this to the CMake generated pc file:
Expected behavior
I would expect the Autotools-generated pc file to be the same as the CMake one.
Additionally, it seems that the pc file contents depend on whether you install openssl with
--libdir=lib64
vs--libdir=lib
.--libdir=lib64
(default in OpenSSL 3?) there are no-L
flags added to the pc file when using autotools--libdir=lib
the are-L
flags added to the pc file when using autotools.The text was updated successfully, but these errors were encountered: