cURL / Mailing Lists / curl-users / Single Mail


Re: cross-compile curl problem with rpath-lib and openssl

From: Dan Fandrich <>
Date: Thu, 13 Sep 2007 08:40:05 -0700

On Thu, Sep 13, 2007 at 05:16:41PM +0200, Biefel, Reiner (NSN - DE/Germany - MiniMD) wrote:
> when I call configure with parameter
> ./configure --with-ssl=/OPENSSL-PATH
> I got linker problems that was not found.
> I saw that configure added -rpath with /usr/local/lib
> gcc -Os -o .libs/curl main.o .... -Wl,--rpath -Wl,/usr/local/lib
> When I call
> ./configure --libdir=/OPENSSL-PATH/lib --with-ssl=/OPENSSL-PATH
> I get the correct directory libdir for the --rpath
> gcc -Os -o .libs/curl main.o .... -Wl,--rpath -Wl,/OPENSSL-PATH/lib
> But still linker errors of unfound
> For test I've replaced all -rpath with -rpath-link in the configure script and
> all is fine.
> How can I get configure to add rpath-link and call ?
> gcc -Os -o .libs/curl main.o .... -Wl,--rpath-link -Wl,/OPENSSL-PATH/lib

Does this happen on the version of curl that's installed with 'make install'?
libtool often relinks the binaries during that stage, so what's sitting in
your build directory is not necessarily what's sitting in your
/usr/local/{lib,bin} (or wherever is the final resting place).

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-09-13