cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Compilation issue: linking to openssl with absolute path?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 2 Oct 2014 09:02:22 +0200

On Thu, Oct 02, 2014 at 08:32:14AM +0200, Romain Rivière wrote:
> On 02/10/2014 00:21, Dan Fandrich wrote:
> > Have you tried using pkg-config? That is the most reliable method. Just
> > set PKG_CONFIG_PATH to the right location for your OpenSSL installation's
> > openssl.pc file and it should just work. The various options for compiling
> > against OpenSSL are discussed in the INSTALL file, if you haven't already
> > seen that.
>
> Wouldn't that result in the final binary looking for OpenSSL in that
> particular path? If so, this won't help me: on the destination system,
> libssl lives in the expected path. Again, it's only the a.out resulting
> of one of the conftest.c that's failing.

Not generally. The .pc file is used only for linking and almost never
specifies a run-time path. That also means that if the library is not in a
standard location at run-time you must separately ensure that the dynamic
linker is able to find it (e.g. by mentioning it in /etc/ld.so.conf).

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-10-02