buildroot-libtool-v1.5.patch 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --- a/ltmain.sh 2006-03-11 13:49:04.000000000 -0500
  2. +++ b/ltmain.sh 2008-04-30 09:55:28.000000000 -0400
  3. @@ -273,8 +273,9 @@ func_infer_tag ()
  4. # line option must be used.
  5. if test -z "$tagname"; then
  6. $echo "$modename: unable to infer tagged configuration"
  7. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  8. - exit $EXIT_FAILURE
  9. + $echo "$modename: defaulting to \`CC'"
  10. + $echo "$modename: if this is not correct, specify a tag with \`--tag'"
  11. +# exit $EXIT_FAILURE
  12. # else
  13. # $echo "$modename: using $tagname tagged configuration"
  14. fi
  15. @@ -2407,8 +2408,14 @@ EOF
  16. absdir="$abs_ladir"
  17. libdir="$abs_ladir"
  18. else
  19. - dir="$libdir"
  20. - absdir="$libdir"
  21. + # Adding 'libdir' from the .la file to our library search paths
  22. + # breaks crosscompilation horribly. We cheat here and don't add
  23. + # it, instead adding the path where we found the .la. -CL
  24. + dir="$abs_ladir"
  25. + absdir="$abs_ladir"
  26. + libdir="$abs_ladir"
  27. + #dir="$libdir"
  28. + #absdir="$libdir"
  29. fi
  30. test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  31. else
  32. @@ -2545,7 +2552,7 @@ EOF
  33. { test "$use_static_libs" = no || test -z "$old_library"; }; then
  34. if test "$installed" = no; then
  35. notinst_deplibs="$notinst_deplibs $lib"
  36. - need_relink=yes
  37. + need_relink=no
  38. fi
  39. # This is a shared library
  40. @@ -5606,6 +5623,10 @@ fi\
  41. # Replace all uninstalled libtool libraries with the installed ones
  42. newdependency_libs=
  43. for deplib in $dependency_libs; do
  44. + # Replacing uninstalled with installed can easily break crosscompilation,
  45. + # since the installed path is generally the wrong architecture. -CL
  46. + newdependency_libs="$newdependency_libs $deplib"
  47. + continue
  48. case $deplib in
  49. *.la)
  50. name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  51. @@ -5927,10 +5948,13 @@ relink_command=\"$relink_command\""
  52. # At present, this check doesn't affect windows .dll's that
  53. # are installed into $libdir/../bin (currently, that works fine)
  54. # but it's something to keep an eye on.
  55. - if test "$inst_prefix_dir" = "$destdir"; then
  56. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  57. - exit $EXIT_FAILURE
  58. - fi
  59. + #
  60. + # This breaks install into our staging area. -PB
  61. + #
  62. + # if test "$inst_prefix_dir" = "$destdir"; then
  63. + # $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  64. + # exit $EXIT_FAILURE
  65. + # fi
  66. if test -n "$inst_prefix_dir"; then
  67. # Stick the inst_prefix_dir data into the link command.