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: Local Build Environment - Can't set openssl directory?

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 2 Dec 2019 10:20:36 +0100 (CET)

On Sun, 1 Dec 2019, connor horman via curl-library wrote:

> I'm working on a game project, which has multiple dependencies, including
> curl and openssl. My goal is to have it working on its own, without any
> system level dependencies, asside from those which do not make sense to have
> at project level (such as X11, glibc, etc.). I was able to use LD_FLAGS and
> CFLAGS set the appropriate directories to the openssl build and source
> directories respectively

You probably meant LDFLAGS, no LD_FLAGS.

> however it does not seem to have any effect, as the version I have available
> is 3.0, but curl is linking against 1.1.0

You need to be aware that what you specify at link-time, isn't necessary the
same that's used later at run-time.

If you link your program to use libcurl as a shared library, it gets loaded at
run-time by ld.so and it typically has its own path to search in order to find
the libs. That doesn't have to then find the same lib!

On linux, you set the path in /etc/ld.so.conf, but you can also link your
program to use a specific set path or even change the path in your shell with
LD_LIBRARY_PATH.

None of this is curl specific.

-- 
  / daniel.haxx.se | Get the best commercial curl support there is - from me
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2019-12-02