Package: libtool
Version: 1.5.20-2
Severity: wishlist
Tags: patch

Hi,

The patch you added to libtool to prune unused libs from the linker line
is a very nice thing and will probably ease the next transitions.

However, it is currently only enabled on GNU/Linux. Could you please
also enable it on GNU/kFreeBSD? The attached patch does that.

Thanks in advance,
Aurelien

-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages libtool depends on:
ii  autotools-dev            20050803.1      Update infrastructure for config.{
ii  cpp                      4:4.0.2-1       The GNU C preprocessor (cpp)
ii  file                     4.15-2          Determines file type using "magic"
ii  gcc [c-compiler]         4:4.0.2-1       The GNU C compiler
ii  gcc-3.4 [c-compiler]     3.4.5-1         The GNU C compiler
ii  gcc-4.0 [c-compiler]     4.0.2-5         The GNU C compiler
ii  libc0.1-dev [libc6-dev]  2.3-1+kbsd.14   GNU C Library: Development Librari

Versions of packages libtool recommends:
ii  libltdl3-dev                  1.5.20-2   A system independent dlopen wrappe

-- no debconf information
diff -u libtool-1.5.20/debian/patches/link_all_deplibs.dpatch 
libtool-1.5.20/debian/patches/link_all_deplibs.dpatch
--- libtool-1.5.20/debian/patches/link_all_deplibs.dpatch
+++ libtool-1.5.20/debian/patches/link_all_deplibs.dpatch
@@ -11,17 +11,20 @@
 diff -urNad --exclude=CVS --exclude=.svn ./libtool.m4 
/tmp/dpep-work.DH3vrV/libtool-1.5.20/libtool.m4
 --- ./libtool.m4       2005-09-14 20:50:48.404325960 +0200
 +++ /tmp/dpep-work.DH3vrV/libtool-1.5.20/libtool.m4    2005-09-14 
20:50:48.488313192 +0200
-@@ -5216,6 +5216,9 @@
+@@ -5216,6 +5216,12 @@
    cygwin* | mingw*)
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | 
$global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* 
__nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' 
| sort | uniq > $export_symbols'
    ;;
++  kfreebsd*-gnu)
++    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
++  ;;
 +  linux*)
 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 +  ;;
    *)
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | 
$global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    ;;
-@@ -5393,6 +5396,7 @@
+@@ -5393,6 +5399,7 @@
    $echo "local: *; };" >> $output_objdir/$libname.ver~
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags 
${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver 
-o $lib'
        fi

Reply via email to