[gnutls-dev]interlibrary dependencies

Ivo Timmermans ivo at o2w.nl
Mon Oct 14 21:54:01 CEST 2002


Hi Nikos,

For libgnutls-extra.so to be really useful, it would be nice to have
objdump -p /usr/lib/libgnutls-extra.so give the full list of
dependencies.  This makes at least automatic dependency generation for
Debian a lot easier, but it also tells ld.so which libraries it needs.

With the attached patch, it gives:

  NEEDED      libopencdk.so.0
  NEEDED      libgcrypt.so.1
  NEEDED      libgnutls.so.5
  NEEDED      libz.so.1
  NEEDED      libc.so.6

Without it's just:

  NEEDED      libz.so.1
  NEEDED      libc.so.6

Spot the difference.

However!  The attached patch requires you, Nikos, the one creating the
release tarballs, to have a libtool installed that can handle this
correctly.

I don't know what kind of system you use to create these releases, but
apparently the upstream maintainers of libtool didn't release a
version with this capability.

But for Debian, you can install libtool 1.4.2-7.1 or higher, for RedHat
this seems to be fixed 1.4.2-12.

More information is available from 

	https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=58664
	http://bugs.debian.org/cgi-bin/bugreport.cgi?archive=no&bug=57087


	Ivo

-- 
We don't know how the Internet really works.  We know how it should
work, but we are constantly surprised.
	- Bruce Schneier
-------------- next part --------------
diff -r -u gnutls5-0.5.6.old/libextra/Makefile.am gnutls5-0.5.6/libextra/Makefile.am
--- gnutls5-0.5.6.old/libextra/Makefile.am	2002-10-05 12:00:56.000000000 +0200
+++ gnutls5-0.5.6/libextra/Makefile.am	2002-10-05 13:41:54.000000000 +0200
@@ -16,7 +16,8 @@
 	gnutls_srp.c auth_srp.c auth_srp_passwd.c auth_srp_sb64.c \
 	gnutls_openpgp.c gnutls_extra.c gnutls_openssl.c
 
-libgnutls_extra_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+libgnutls_extra_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) $(shell opencdk-config --libs)
+libgnutls_extra_la_LIBADD = ../lib/libgnutls.la
 
 libgnutls_extra_la_SOURCES = $(COBJECTS_EXTRA) 
 


More information about the Gnutls-devel mailing list