3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- libtool-1.5/ltmain.in~libdir-la
7 +++ libtool-1.5/ltmain.in
14 + # Adding 'libdir' from the .la file to our library search paths
15 + # breaks crosscompilation horribly. We cheat here and don't add
16 + # it, instead adding the path where we found the .la. -CL
25 @@ -2545,16 +2551,16 @@
27 if grep "^installed=no" $deplib > /dev/null; then
28 path="$absdir/$objdir"
30 - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
31 - if test -z "$libdir"; then
32 - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
35 - if test "$absdir" != "$libdir"; then
36 - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
40 +# eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
41 +# if test -z "$libdir"; then
42 +# $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
45 +# if test "$absdir" != "$libdir"; then
46 +# $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
52 @@ -5072,6 +5072,10 @@
53 # Replace all uninstalled libtool libraries with the installed ones
55 for deplib in $dependency_libs; do
56 + # Replacing uninstalled with installed can easily break crosscompilation,
57 + # since the installed path is generally the wrong architecture. -CL
58 + newdependency_libs="$newdependency_libs $deplib"
62 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`