libdir-la.patch 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. --- gettext-0.14.6/autoconf-lib-link/build-aux/ltmain.sh.orig 2007-01-13 14:33:23.000000000 -0700
  2. +++ gettext-0.14.6/autoconf-lib-link/build-aux/ltmain.sh 2007-01-13 14:35:10.000000000 -0700
  3. @@ -234,8 +234,9 @@
  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. @@ -2324,8 +2325,14 @@
  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. @@ -2800,6 +2807,16 @@
  33. esac
  34. if grep "^installed=no" $deplib > /dev/null; then
  35. path="$absdir/$objdir"
  36. +# This interferes with crosscompilation. -CL
  37. +# else
  38. +# eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  39. +# if test -z "$libdir"; then
  40. +# $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  41. +# exit 1
  42. +# fi
  43. +# if test "$absdir" != "$libdir"; then
  44. +# $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  45. +# fi
  46. else
  47. eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  48. if test -z "$libdir"; then
  49. @@ -5210,6 +5227,10 @@
  50. # Replace all uninstalled libtool libraries with the installed ones
  51. newdependency_libs=
  52. for deplib in $dependency_libs; do
  53. + # Replacing uninstalled with installed can easily break crosscompilation,
  54. + # since the installed path is generally the wrong architecture. -CL
  55. + newdependency_libs="$newdependency_libs $deplib"
  56. + continue
  57. case $deplib in
  58. *.la)
  59. name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  60. @@ -5528,10 +5549,13 @@
  61. # At present, this check doesn't affect windows .dll's that
  62. # are installed into $libdir/../bin (currently, that works fine)
  63. # but it's something to keep an eye on.
  64. - if test "$inst_prefix_dir" = "$destdir"; then
  65. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  66. - exit $EXIT_FAILURE
  67. - fi
  68. + #
  69. + # This breaks install into our staging area. -PB
  70. + #
  71. + # if test "$inst_prefix_dir" = "$destdir"; then
  72. + # $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  73. + # exit $EXIT_FAILURE
  74. + # fi
  75. if test -n "$inst_prefix_dir"; then
  76. # Stick the inst_prefix_dir data into the link command.
  77. --- gettext-0.14.6/build-aux/ltmain.sh.orig 2005-05-20 15:03:38.000000000 -0600
  78. +++ gettext-0.14.6/build-aux/ltmain.sh 2007-01-13 14:34:27.000000000 -0700
  79. @@ -234,8 +234,9 @@
  80. # line option must be used.
  81. if test -z "$tagname"; then
  82. $echo "$modename: unable to infer tagged configuration"
  83. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  84. - exit $EXIT_FAILURE
  85. + $echo "$modename: defaulting to \`CC'"
  86. + $echo "$modename: if this is not correct, specify a tag with \`--tag'"
  87. +# exit $EXIT_FAILURE
  88. # else
  89. # $echo "$modename: using $tagname tagged configuration"
  90. fi
  91. @@ -2324,8 +2325,14 @@
  92. absdir="$abs_ladir"
  93. libdir="$abs_ladir"
  94. else
  95. - dir="$libdir"
  96. - absdir="$libdir"
  97. + # Adding 'libdir' from the .la file to our library search paths
  98. + # breaks crosscompilation horribly. We cheat here and don't add
  99. + # it, instead adding the path where we found the .la. -CL
  100. + dir="$abs_ladir"
  101. + absdir="$abs_ladir"
  102. + libdir="$abs_ladir"
  103. + #dir="$libdir"
  104. + #absdir="$libdir"
  105. fi
  106. test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  107. else
  108. @@ -2800,6 +2807,16 @@
  109. esac
  110. if grep "^installed=no" $deplib > /dev/null; then
  111. path="$absdir/$objdir"
  112. +# This interferes with crosscompilation. -CL
  113. +# else
  114. +# eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  115. +# if test -z "$libdir"; then
  116. +# $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  117. +# exit 1
  118. +# fi
  119. +# if test "$absdir" != "$libdir"; then
  120. +# $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  121. +# fi
  122. else
  123. eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  124. if test -z "$libdir"; then
  125. @@ -5210,6 +5227,10 @@
  126. # Replace all uninstalled libtool libraries with the installed ones
  127. newdependency_libs=
  128. for deplib in $dependency_libs; do
  129. + # Replacing uninstalled with installed can easily break crosscompilation,
  130. + # since the installed path is generally the wrong architecture. -CL
  131. + newdependency_libs="$newdependency_libs $deplib"
  132. + continue
  133. case $deplib in
  134. *.la)
  135. name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  136. @@ -5528,10 +5549,13 @@
  137. # At present, this check doesn't affect windows .dll's that
  138. # are installed into $libdir/../bin (currently, that works fine)
  139. # but it's something to keep an eye on.
  140. - if test "$inst_prefix_dir" = "$destdir"; then
  141. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  142. - exit $EXIT_FAILURE
  143. - fi
  144. + #
  145. + # This breaks install into our staging area. -PB
  146. + #
  147. + # if test "$inst_prefix_dir" = "$destdir"; then
  148. + # $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  149. + # exit $EXIT_FAILURE
  150. + # fi
  151. if test -n "$inst_prefix_dir"; then
  152. # Stick the inst_prefix_dir data into the link command.