[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gnutls] Re: statically linked libgnutls doesn't pull in zlib
From: |
Simon Josefsson |
Subject: |
[Help-gnutls] Re: statically linked libgnutls doesn't pull in zlib |
Date: |
Fri, 18 Aug 2006 10:47:07 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
"kyle cronan" <address@hidden> writes:
> Hi everyone,
>
> This is really pretty minor, but when I tried to link my application
> statically I got some undefined symbols, such as deflate, that are
> part of zlib. So I had to add this to my application's dependencies
> even though I don't use zlib directly.
>
> I see that in the libgnutls.la file, it has
>
> dependency_libs=' -L/usr/lib -lz /usr/lib/libgcrypt.la -lnsl -lgpg-error '
>
> So I don't know why those symbols don't end up in libgnutls.a. I just
> thought I'd post in case somebody knows an easy fix.
Hi! Looking at the libgnutls.a installed on my system, it doesn't
have libz symbols either:
address@hidden:~/src/gnutls$ nm -B ~/lib/libgnutls.a |grep deflate
U deflate
U deflateEnd
U deflateInit2_
address@hidden:~/src/gnutls$
Isn't the normal procedure that, if you use static linking, you have
to link directly to a library, and all its dependencies?
I think that if you use libtool to link your static application, it
should have taken care of this.
/Simon