freetype-2.3.9-libdir-la.patch 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. diff -urN freetype-2.3.7.orig/builds/unix/ltmain.sh freetype-2.3.7/builds/unix/ltmain.sh
  2. --- freetype-2.3.7.orig/builds/unix/ltmain.sh 2008-09-16 15:55:36.000000000 +0100
  3. +++ freetype-2.3.7/builds/unix/ltmain.sh 2008-09-22 09:18:36.000000000 +0100
  4. @@ -1047,8 +1047,9 @@
  5. # was found and let the user know that the "--tag" command
  6. # line option must be used.
  7. if test -z "$tagname"; then
  8. - func_echo "unable to infer tagged configuration"
  9. - func_fatal_error "specify a tag with \`--tag'"
  10. + func_echo "unable to infer tagged configuration"
  11. + func_echo "$modename: defaulting to \`CC'"
  12. + func_echo "$modename: if this is not correct, specify a tag with \`--tag'"
  13. # else
  14. # func_verbose "using $tagname tagged configuration"
  15. fi
  16. @@ -2017,8 +2018,11 @@
  17. # At present, this check doesn't affect windows .dll's that
  18. # are installed into $libdir/../bin (currently, that works fine)
  19. # but it's something to keep an eye on.
  20. - test "$inst_prefix_dir" = "$destdir" && \
  21. - func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  22. + #
  23. + # This breaks install into our staging area. -PB
  24. + #
  25. + #test "$inst_prefix_dir" = "$destdir" && \
  26. + # func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  27. if test -n "$inst_prefix_dir"; then
  28. # Stick the inst_prefix_dir data into the link command.
  29. @@ -4885,8 +4889,14 @@
  30. absdir="$abs_ladir"
  31. libdir="$abs_ladir"
  32. else
  33. - dir="$libdir"
  34. - absdir="$libdir"
  35. + # Adding 'libdir' from the .la file to our library search paths
  36. + # breaks crosscompilation horribly. We cheat here and don't add
  37. + # it, instead adding the path where we found the .la. -CL
  38. + dir="$abs_ladir"
  39. + absdir="$abs_ladir"
  40. + libdir="$abs_ladir"
  41. + #dir="$libdir"
  42. + #absdir="$libdir"
  43. fi
  44. test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  45. else
  46. @@ -5408,13 +5418,16 @@
  47. ;;
  48. esac
  49. else
  50. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  51. - test -z "$libdir" && \
  52. - func_fatal_error "\`$deplib' is not a valid libtool archive"
  53. - test "$absdir" != "$libdir" && \
  54. - func_warning "\`$deplib' seems to be moved"
  55. -
  56. - path="-L$absdir"
  57. +# This interferes with crosscompilation. -CL
  58. +# eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  59. +# test -z "$libdir" && \
  60. +# func_fatal_error "\`$deplib' is not a valid libtool archive"
  61. +# test "$absdir" != "$libdir" && \
  62. +# func_warning "\`$deplib' seems to be moved"
  63. +#
  64. +# path="-L$absdir"
  65. + path="-L$absdir/$objdir"
  66. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  67. fi
  68. ;;
  69. esac
  70. @@ -7520,6 +7533,10 @@
  71. # Replace all uninstalled libtool libraries with the installed ones
  72. newdependency_libs=
  73. for deplib in $dependency_libs; do
  74. + # Replacing uninstalled with installed can easily break crosscompilation,
  75. + # since the installed path is generally the wrong architecture. -CL
  76. + newdependency_libs="$newdependency_libs $deplib"
  77. + continue
  78. case $deplib in
  79. *.la)
  80. func_basename "$deplib"