Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Some OpenSSL configure tests not linking OpenSSL #2199
I did this
./configure --enable-warnings --enable-werror --enable-static --disable-shared [...] --with-ssl="/[...]/openssl/[...]"
OpenSSL's lib directory only contains libcrypto.a and libssl.a.
From config.log (https://github.com/curl/curl/blob/curl-7_57_0/configure.ac#L1638):
I expected the following
-lcrypto also being passed to the -ldl and -ldl -lpthread tests
7.57.0 (OpenSSL 1.1.0g)
Ubuntu 16.04 Xenial
We typically don't bother very much with static builds, especially not without pkg-config data since it is a futile race trying to make that to work for everyone. In the past
That said, when I install the latest openssl git version static-only, my curl configure script detects and links with that just fine:
Static linking without pkg-config works fine with
My use case is creating a libcurl Conan package referencing an OpenSSL Conan package, so the pkg-config generated by OpenSSL is not really usable, unfortunately.
This was originally OpenSSL 1.1.0g and curl 7.57.0. I just retried with OpenSSL 1.1.0h and curl 7.60.0 and the result is the same: