cURL / Mailing Lists / curl-users / Single Mail


cross-compile curl problem with rpath-lib and openssl

From: Biefel, Reiner (NSN - DE/Germany - MiniMD) <>
Date: Thu, 13 Sep 2007 17:16:41 +0200

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
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
Received on 2007-09-13