Bug#297741: libglib2.0-dev: Libtool library files (*.la) missing static archive

absurd@schlund.de, 297741@bugs.debian.org absurd@schlund.de, 297741@bugs.debian.org
Wed, 2 Mar 2005 17:36:15 +0100 (CET)


Package: libglib2.0-dev
Version: 2.6.2-1
Severity: normal

Hi,

this breaks static linking using "-all-static" with libtool in
autotool Makefiles; all glib libraries will be converted by libtool
into the explicit *so file names, which results in a non-usable
binary.

I.e., for example for /usr/lib/libglib-2.0.la, the following change
will fix libtool's linking with "-all-static":

# root? diff -u libgthread-2.0.la.orig libgthread-2.0.la
--- libgthread-2.0.la.orig      2005-02-11 13:04:05.000000000 +0000
+++ libgthread-2.0.la   2005-02-11 13:03:02.000000000 +0000
@@ -11,7 +11,7 @@
 library_names='libgthread-2.0.so.0.600.1 libgthread-2.0.so.0
 libgthread-2.0.so'

 # The name of the static archive.
-old_library=''
+old_library='libgthread-2.0.a'

 # Libraries that this one depends upon.
 dependency_libs=' -lpthread /usr/lib/libglib-2.0.la'

At least some former versions seemed to work fine, afaik.

Thanks,

Stephan

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (1, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-k7
Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages libglib2.0-dev depends on:
ii  libc6-dev [libc-dev]        2.3.2.ds1-20 GNU C Library: Development Librari
ii  libglib2.0-0                2.6.2-1      The GLib library of C routines
ii  pkg-config                  0.15.0-4     Manage compile and link flags for 

-- no debconf information