cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: How to statically link openssl to libcurl so that libcurl would use the right version of openssl

From: Hongbo Li <hongbol_at_nortel.com>
Date: Wed, 28 Jun 2006 15:08:51 -0400

Hi Dan,

Some information on what I am doing with libcurl now:

 pwd
/opt/hongbo/98a/curl-7.12.2
# g++ -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls --disable-libgcj
--enable-languages=c,c++
Thread model: posix
gcc version 3.3.2
# gcc -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls --disable-libgcj
--enable-languages=c,c++
Thread model: posix
gcc version 3.3.2
# ./configure --disable-static --enable-hidden-symbols
--without-ca-bundle --enable-thread --with-ssl=/opt/hongbo/98a/build
--prefix=/opt/hongbo/98a/build

I am using gcc/g++ and do I need to confgiure it with
--enable-hidden-symbols? How to do it?

Thanks,

Hongbo.

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Dan Fandrich
Sent: Wednesday, June 28, 2006 1:22 PM
To: curl-library_at_cool.haxx.se
Subject: Re: How to statically link openssl to libcurl so that libcurl
would use the right version of openssl

On Wed, Jun 28, 2006 at 12:46:23PM -0400, Hongbo Li wrote:
> How I can build libcurl to ensure that it will only use the version of

> openssl built into libcurl and will not use the one loaded by the
> driving program (in my case, SUN SSHD)?

Try the --enable-hidden-symbols configure option available in CVS or
recent daily tar balls (assuming you're using gcc). If you're using the
SunPro 5.5 compiler, I can give you some completely untested patches
that
should do the same thing there.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address
service
          Let webmasters know that your web site has moved
Received on 2006-06-28