You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

debian_libtool.patch 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. Index: a/ltmain.sh
  2. ===================================================================
  3. --- a/ltmain.sh
  4. +++ b/ltmain.sh
  5. @@ -7890,19 +7890,19 @@
  6. # It is a libtool convenience library, so add in its objects.
  7. func_append convenience " $ladir/$objdir/$old_library"
  8. func_append old_convenience " $ladir/$objdir/$old_library"
  9. - tmp_libs=
  10. - for deplib in $dependency_libs; do
  11. - deplibs="$deplib $deplibs"
  12. - if $opt_preserve_dup_deps; then
  13. - case "$tmp_libs " in
  14. - *" $deplib "*) func_append specialdeplibs " $deplib" ;;
  15. - esac
  16. - fi
  17. - func_append tmp_libs " $deplib"
  18. - done
  19. elif test prog != "$linkmode" && test lib != "$linkmode"; then
  20. func_fatal_error "'$lib' is not a convenience library"
  21. fi
  22. + tmp_libs=
  23. + for deplib in $dependency_libs; do
  24. + deplibs="$deplib $deplibs"
  25. + if $opt_preserve_dup_deps; then
  26. + case "$tmp_libs " in
  27. + *" $deplib "*) func_append specialdeplibs " $deplib" ;;
  28. + esac
  29. + fi
  30. + func_append tmp_libs " $deplib"
  31. + done
  32. continue
  33. fi # $pass = conv
  34. ## Do not link against deplibs. This is not needed for shared libs
  35. ## on atleast ELF systems since those already know which libs they
  36. ## need themself. This seems to break a few things and will be fixed
  37. ## in a better way in a future upstream version.
  38. Index: a/ltmain.sh
  39. ===================================================================
  40. --- a/ltmain.sh
  41. +++ b/ltmain.sh
  42. @@ -7568,10 +7568,7 @@
  43. case $pass in
  44. dlopen) libs=$dlfiles ;;
  45. dlpreopen) libs=$dlprefiles ;;
  46. - link)
  47. - libs="$deplibs %DEPLIBS%"
  48. - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  49. - ;;
  50. + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  51. esac
  52. fi
  53. if test lib,dlpreopen = "$linkmode,$pass"; then
  54. Index: a/m4/libtool.m4
  55. ===================================================================
  56. --- a/m4/libtool.m4
  57. +++ b/m4/libtool.m4
  58. @@ -4936,9 +4936,6 @@
  59. ;;
  60. esac
  61. ;;
  62. - linux* | k*bsd*-gnu | gnu*)
  63. - _LT_TAGVAR(link_all_deplibs, $1)=no
  64. - ;;
  65. *)
  66. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  67. ;;
  68. @@ -4998,9 +5001,6 @@
  69. openbsd* | bitrig*)
  70. with_gnu_ld=no
  71. ;;
  72. - linux* | k*bsd*-gnu | gnu*)
  73. - _LT_TAGVAR(link_all_deplibs, $1)=no
  74. - ;;
  75. esac
  76. _LT_TAGVAR(ld_shlibs, $1)=yes
  77. @@ -5773,7 +5779,6 @@
  78. if test yes = "$lt_cv_irix_exported_symbol"; then
  79. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  80. fi
  81. - _LT_TAGVAR(link_all_deplibs, $1)=no
  82. else
  83. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  84. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'