curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Is there a way to statically link only nghttp2 but not others (openssl)

From: Rainer Canavan <rainer+curlusers_at_7val.com>
Date: Thu, 4 Jan 2018 15:57:05 +0100

On Tue, Jan 2, 2018 at 12:43 PM, Sunil Sayyaparaju via curl-library
<curl-library_at_cool.haxx.se> wrote:
> I need both nghttp2 and openssl for my
> work. I am able to statically compile libcurl with nghttp on other
> platforms (ubuntu/debian).

Is it actually necessary to statically link those libraries, or can
you ship dynamic versions
of them with your binary and set the LD_RUN_PATH, e.g. via
-Wl,-rpath,/path/to/your/libs
accordingly? Obviously, this requires that your libraries can only be
installed in
a limited number of possible locations.

Rainer
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-01-04