bump version
[buildroot.git] / package / buildroot-libtool.patch
blob277719d938f1530e768a78e1a2c8def3e0c9b6e6
1 --- a/ltmain.sh 2006-03-11 13:49:04.000000000 -0500
2 +++ b/ltmain.sh 2008-04-30 09:55:28.000000000 -0400
3 @@ -273,8 +273,9 @@ func_infer_tag ()
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"
15 @@ -2407,8 +2408,14 @@ EOF
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"
30 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
31 else
32 @@ -2545,7 +2552,7 @@ EOF
33 { test "$use_static_libs" = no || test -z "$old_library"; }; then
34 if test "$installed" = no; then
35 notinst_deplibs="$notinst_deplibs $lib"
36 - need_relink=yes
37 + need_relink=no
39 # This is a shared library
41 @@ -2889,6 +2896,16 @@ EOF
42 esac
43 if grep "^installed=no" $deplib > /dev/null; then
44 path="$absdir/$objdir"
45 +# This interferes with crosscompilation. -CL
46 +# else
47 +# eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
48 +# if test -z "$libdir"; then
49 +# $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
50 +# exit 1
51 +# fi
52 +# if test "$absdir" != "$libdir"; then
53 +# $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
54 +# fi
55 else
56 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
57 if test -z "$libdir"; then
58 @@ -5606,6 +5623,10 @@ fi\
59 # Replace all uninstalled libtool libraries with the installed ones
60 newdependency_libs=
61 for deplib in $dependency_libs; do
62 + # Replacing uninstalled with installed can easily break crosscompilation,
63 + # since the installed path is generally the wrong architecture. -CL
64 + newdependency_libs="$newdependency_libs $deplib"
65 + continue
66 case $deplib in
67 *.la)
68 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
69 @@ -5927,10 +5948,13 @@ relink_command=\"$relink_command\""
70 # At present, this check doesn't affect windows .dll's that
71 # are installed into $libdir/../bin (currently, that works fine)
72 # but it's something to keep an eye on.
73 - if test "$inst_prefix_dir" = "$destdir"; then
74 - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
75 - exit $EXIT_FAILURE
76 - fi
77 + #
78 + # This breaks install into our staging area. -PB
79 + #
80 + # if test "$inst_prefix_dir" = "$destdir"; then
81 + # $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
82 + # exit $EXIT_FAILURE
83 + # fi
85 if test -n "$inst_prefix_dir"; then
86 # Stick the inst_prefix_dir data into the link command.