curl-users
cross-compile curl problem with rpath-lib and openssl
Date: Thu, 13 Sep 2007 17:16:41 +0200
Hello,
when I call configure with parameter
./configure --with-ssl=/OPENSSL-PATH
I got linker problems that libssl.so 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 libssl.so
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
Regards
Reiner
Received on 2007-09-13