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:54:34 -0400

Hi Dan,

I understand now. I am going to recompile libcurl. I have to use gcc
4.0.0 right? Which version of libcurl supports this option? The latest
one or I can use 7.12 but the new configure.ac?

Thanks and appreciated.

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: None
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 02:32:22PM -0400, Hongbo Li wrote:
> 6. I create a shared libuse_toto.so that statically link to toto.a
> g++ --enable-hidden-symbols -shared -o libuse_toto.so -L./ -ltoto
> ./use_toto.o
[...]
> Did I use the option --enable-hidden-symbols correctly?

--enable-hidden-symbols is a curl configure option, not a gcc option.
If you look at curl's configure.ac you'll see how that expands into a
set of flags to gcc and a set of attributes for global symbols. If you
want to create your own test, you'll need to replicate what configure
does in your own program. It's probably easier to just recompile curl.

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