buildroot-libtool-v2.4.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --- a/ltmain.sh
  2. +++ b/ltmain.sh
  3. @@ -1416,8 +1416,8 @@
  4. # was found and let the user know that the "--tag" command
  5. # line option must be used.
  6. if test -z "$tagname"; then
  7. - func_echo "unable to infer tagged configuration"
  8. - func_fatal_error "specify a tag with \`--tag'"
  9. + func_echo "defaulting to \`CC'"
  10. + func_echo "if this is not correct, specify a tag with \`--tag'"
  11. # else
  12. # func_verbose "using $tagname tagged configuration"
  13. fi
  14. @@ -2962,8 +2962,11 @@
  15. # At present, this check doesn't affect windows .dll's that
  16. # are installed into $libdir/../bin (currently, that works fine)
  17. # but it's something to keep an eye on.
  18. - test "$inst_prefix_dir" = "$destdir" && \
  19. - func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  20. + #
  21. + # This breaks install into our staging area. -PB
  22. + #
  23. + # test "$inst_prefix_dir" = "$destdir" && \
  24. + # func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  25. if test -n "$inst_prefix_dir"; then
  26. # Stick the inst_prefix_dir data into the link command.
  27. @@ -6683,7 +6686,7 @@
  28. *)
  29. if test "$installed" = no; then
  30. func_append notinst_deplibs " $lib"
  31. - need_relink=yes
  32. + need_relink=no
  33. fi
  34. ;;
  35. esac
  36. @@ -9257,6 +9260,10 @@
  37. # Replace all uninstalled libtool libraries with the installed ones
  38. newdependency_libs=
  39. for deplib in $dependency_libs; do
  40. + # Replacing uninstalled with installed can easily break crosscompilation,
  41. + # since the installed path is generally the wrong architecture. -CL
  42. + newdependency_libs="$newdependency_libs $deplib"
  43. + continue
  44. case $deplib in
  45. *.la)
  46. func_basename "$deplib"