cURL / Mailing Lists / curl-users / Single Mail


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

From: Biefel, Reiner (NSN - DE/Germany - MiniMD) <>
Date: Fri, 14 Sep 2007 07:47:49 +0200

Hello Dan,

no the problem is during "make", before "make install".
The last step in "make" is to link aginst openssl libs.
And here is the problem of not found openssl libs because configure will not pass
the parameter
    "--rpath-link -Wl,/OPENSSL-PATH/lib"
to the linker.
Configure only pass the parameter
    "--rpath-link -Wl,/OPENSSL-PATH/lib"
to linker and this is not enough :-(

Any idea how I can get configure to pass this "-rpath-link" parameter to the linker ?


-----Ursprüngliche Nachricht-----
Von: [] Im Auftrag von ext Dan Fandrich
Gesendet: Donnerstag, 13. September 2007 17:40
Betreff: Re: cross-compile curl problem with rpath-lib and openssl

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-14