curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Building CURL with OpenSSL

From: Jason Proctor via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 20 Feb 2020 12:43:23 -0800

On Thu, Feb 20, 2020 at 12:39 PM Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Thu, 20 Feb 2020, Jason Proctor via curl-library wrote:
>
> > I see that Curl has a configure option for pointing it at an OpenSSL
> > installation, but so far I have been unable to make this work. With the
> > latest versions of both packages, and OpenSSL successfully built and
> > installed, the Curl configure step can't find the (perfectly good and fine)
> > OpenSSL installation.
> >
> > Questions - is this mechanism still supported? Are there known good versions
> > of Curl and OpenSSL which do this dance successfully? Is there another route
> > from Curl to OpenSSL built from source?
>
> It is very much supported. I use it myself very frequently and we have CI
> builds using it.
>
> 1. build OpenSSL
>
> ./config enable-tls1_3 --prefix=/home/daniel/build-openssl
> make
> make install
>
> 2. build curl
>
> LDFLAGS="-Wl,-rpath,$HOME/build-openssl/lib" \
> ./configure --with-ssl=$HOME/build-openssl
>
> 3. Smile
>
> The LDFLAGS trick is of course not strictly necessary, but is convenient.
>

Thanks so much for the response! Great to know this is supported.

Which versions of Curl vs OpenSSL work for this trick?
Is enabling of TLS 1.3 necessary?
Could you please enlighten as to the effect of the LDFLAGS trick?

thanks!
Jason_at_Spatial
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-02-20