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: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed Jun 28 21:45:53 2006

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