summaryrefslogtreecommitdiffstats
path: root/meta/packages/libtool/libtool-2.2.2/cross_compile.patch
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-05-01 20:53:24 +0000
committerRichard Purdie <richard@openedhand.com>2008-05-01 20:53:24 +0000
commiteaf9aa4cc19a29980ec414ee0763c9c63c89d158 (patch)
treeb78a2759adb0fa9071dad50012d5abfd735eddc5 /meta/packages/libtool/libtool-2.2.2/cross_compile.patch
parent1122b0093f0871989abdad5c74a2af26d1af3c59 (diff)
downloadpoky-eaf9aa4cc19a29980ec414ee0763c9c63c89d158.tar.gz
libtool-2.2.2: Cleanup patches
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4403 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/libtool/libtool-2.2.2/cross_compile.patch')
-rw-r--r--meta/packages/libtool/libtool-2.2.2/cross_compile.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/meta/packages/libtool/libtool-2.2.2/cross_compile.patch b/meta/packages/libtool/libtool-2.2.2/cross_compile.patch
new file mode 100644
index 0000000000..b4bacbd12f
--- /dev/null
+++ b/meta/packages/libtool/libtool-2.2.2/cross_compile.patch
@@ -0,0 +1,55 @@
1Tweaks to make cross-compiling work combined and updated from various
2older patches, some by Chris Larson.
3Not upstreable in this form.
4
5RP - 01/05/2008
6
7Index: libtool-2.2.2/libltdl/config/ltmain.m4sh
8===================================================================
9--- libtool-2.2.2.orig/libltdl/config/ltmain.m4sh 2008-05-01 21:48:42.000000000 +0100
10+++ libtool-2.2.2/libltdl/config/ltmain.m4sh 2008-05-01 21:51:41.000000000 +0100
11@@ -4454,8 +4454,14 @@
12 absdir="$abs_ladir"
13 libdir="$abs_ladir"
14 else
15- dir="$libdir"
16- absdir="$libdir"
17+ # Adding 'libdir' from the .la file to our library search paths
18+ # breaks crosscompilation horribly. We cheat here and don't add
19+ # it, instead adding the path where we found the .la. -CL
20+ dir="$abs_ladir"
21+ absdir="$abs_ladir"
22+ libdir="$abs_ladir"
23+ #dir="$libdir"
24+ #absdir="$libdir"
25 fi
26 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
27 else
28@@ -4825,8 +4831,6 @@
29 add="$libdir/$linklib"
30 fi
31 else
32- # We cannot seem to hardcode it, guess we'll fake it.
33- add_dir="-L$libdir"
34 # Try looking first in the location we're being installed to.
35 if test -n "$inst_prefix_dir"; then
36 case $libdir in
37@@ -4972,7 +4976,17 @@
38 fi
39 ;;
40 *)
41- path="-L$absdir/$objdir"
42+ # OE sets installed=no in staging. We need to look in $objdir and $absdir,
43+ # preferring $objdir. RP 31/04/2008
44+ if test -f "$absdir/$objdir/$depdepl" ; then
45+ depdepl="$absdir/$objdir/$depdepl"
46+ path="-L$absdir/$objdir"
47+ elif test -f "$absdir/$depdepl" ; then
48+ depdepl="$absdir/$depdepl"
49+ path="-L$absdir"
50+ else
51+ path="-L$absdir/$objdir"
52+ fi
53 ;;
54 esac
55 else