3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- libtool-1.5.6/ltmain.in~libdir-la 2004-04-01 21:46:15.000000000 -0600
7 +++ libtool-1.5.6/ltmain.in 2004-05-14 22:53:51.000000000 -0500
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 @@ -2615,6 +2621,16 @@
27 if grep "^installed=no" $deplib > /dev/null; then
28 path="$absdir/$objdir"
29 +# This interferes with crosscompilation. -CL
31 +# eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
32 +# if test -z "$libdir"; then
33 +# $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
36 +# if test "$absdir" != "$libdir"; then
37 +# $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 @@ -5165,6 +5181,10 @@
43 # Replace all uninstalled libtool libraries with the installed ones
45 for deplib in $dependency_libs; do
46 + # Replacing uninstalled with installed can easily break crosscompilation,
47 + # since the installed path is generally the wrong architecture. -CL
48 + newdependency_libs="$newdependency_libs $deplib"
52 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`