summaryrefslogtreecommitdiffstats
path: root/meta/packages/libtool/libtool-2.2.2/libdir-la.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/libtool/libtool-2.2.2/libdir-la.patch')
-rw-r--r--meta/packages/libtool/libtool-2.2.2/libdir-la.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/packages/libtool/libtool-2.2.2/libdir-la.patch b/meta/packages/libtool/libtool-2.2.2/libdir-la.patch
new file mode 100644
index 0000000000..a726cb2b8c
--- /dev/null
+++ b/meta/packages/libtool/libtool-2.2.2/libdir-la.patch
@@ -0,0 +1,56 @@
1Index: libtool-2.2.2/libltdl/config/ltmain.m4sh
2===================================================================
3--- libtool-2.2.2.orig/libltdl/config/ltmain.m4sh 2008-04-02 01:20:54.000000000 +0100
4+++ libtool-2.2.2/libltdl/config/ltmain.m4sh 2008-04-13 22:32:15.000000000 +0100
5@@ -4453,8 +4453,14 @@
6 absdir="$abs_ladir"
7 libdir="$abs_ladir"
8 else
9- dir="$libdir"
10- absdir="$libdir"
11+ # Adding 'libdir' from the .la file to our library search paths
12+ # breaks crosscompilation horribly. We cheat here and don't add
13+ # it, instead adding the path where we found the .la. -CL
14+ dir="$abs_ladir"
15+ absdir="$abs_ladir"
16+ libdir="$abs_ladir"
17+ #dir="$libdir"
18+ #absdir="$libdir"
19 fi
20 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
21 else
22@@ -4973,10 +4979,22 @@
23 fi
24 ;;
25 *)
26- path="-L$absdir/$objdir"
27+ # OE sets installed=no in staging. We need to look in $objdir and $absdir,
28+ # preferring $objdir. RP 31/04/2008
29+ if test -f "$absdir/$objdir/$depdepl" ; then
30+ depdepl="$absdir/$objdir/$depdepl"
31+ path="-L$absdir/$objdir"
32+ elif test -f "$absdir/$depdepl" ; then
33+ depdepl="$absdir/$depdepl"
34+ path="-L$absdir"
35+ else
36+ path="-L$absdir/$objdir"
37+ fi
38 ;;
39 esac
40 else
41+ # This would break cross compiling if we didn't change to installed=no in
42+ # staging. RP 31/04/2008
43 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
44 test -z "$libdir" && \
45 func_fatal_error "\`$deplib' is not a valid libtool archive"
46@@ -7046,6 +7064,10 @@
47 # Replace all uninstalled libtool libraries with the installed ones
48 newdependency_libs=
49 for deplib in $dependency_libs; do
50+ # Replacing uninstalled with installed can easily break crosscompilation,
51+ # since the installed path is generally the wrong architecture. -CL
52+ newdependency_libs="$newdependency_libs $deplib"
53+ continue
54 case $deplib in
55 *.la)
56 func_basename "$deplib"