diff options
author | Scott Garman <scott.a.garman@intel.com> | 2010-12-22 10:10:33 -0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2011-01-21 01:36:15 -0800 |
commit | c15f20a124cdc4966014ff624a06ab5a325042cd (patch) | |
tree | 57d055a81d601db5be854abd53d1094bed817fdb /meta/recipes-devtools/binutils/binutils-2.20.1/binutils-libtool.patch | |
parent | 6656381714c5956f71ca634f5a5f4aa4661bbf7e (diff) | |
download | openembedded-core-c15f20a124cdc4966014ff624a06ab5a325042cd.tar.gz openembedded-core-c15f20a124cdc4966014ff624a06ab5a325042cd.tar.bz2 openembedded-core-c15f20a124cdc4966014ff624a06ab5a325042cd.tar.xz openembedded-core-c15f20a124cdc4966014ff624a06ab5a325042cd.zip |
binutils: upgrade to 2.21 and add libtool sysroot support
* Upgraded binutils to v2.21
* Incorporated libtool sysroot patches from OE
* Removed patches no longer needed or obsoleted by OE patches
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-2.20.1/binutils-libtool.patch')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils-2.20.1/binutils-libtool.patch | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-libtool.patch b/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-libtool.patch deleted file mode 100644 index 61517d1d4..000000000 --- a/meta/recipes-devtools/binutils/binutils-2.20.1/binutils-libtool.patch +++ /dev/null @@ -1,67 +0,0 @@ -This is because libdir has a trailing slash which breaks the comparision. - -RP 2/1/10 - -Index: binutils-2.20.1/ltmain.sh -=================================================================== ---- binutils-2.20.1.orig/ltmain.sh 2009-09-01 00:59:32.000000000 +0800 -+++ binutils-2.20.1/ltmain.sh 2010-07-29 09:41:14.000000000 +0800 -@@ -2156,8 +2156,12 @@ - dir="$dir$objdir" - - if test -n "$relink_command"; then -+ # Strip any trailing slash from the destination. -+ func_stripname '' '/' "$libdir" -+ destlibdir=$func_stripname_result -+ - # Determine the prefix the user has applied to our future dir. -- inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` -+ inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$destlibdir\$%%"` - - # Don't allow the user to place us outside of our expected - # location b/c this prevents finding dependent libraries that -@@ -5570,8 +5574,14 @@ - absdir="$abs_ladir" - libdir="$abs_ladir" - else -- dir="$libdir" -- absdir="$libdir" -+ # Adding 'libdir' from the .la file to our library search paths -+ # breaks crosscompilation horribly. We cheat here and don't add -+ # it, instead adding the path where we found the .la. -CL -+ dir="$abs_ladir" -+ absdir="$abs_ladir" -+ libdir="$abs_ladir" -+ #dir="$libdir" -+ #absdir="$libdir" - fi - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes - else -@@ -5942,8 +5952,6 @@ - add="$libdir/$linklib" - fi - else -- # We cannot seem to hardcode it, guess we'll fake it. -- add_dir="-L$libdir" - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in -@@ -6089,7 +6097,17 @@ - fi - ;; - *) -- path="-L$absdir/$objdir" -+ # OE sets installed=no in staging. We need to look in $objdir and $absdir, -+ # preferring $objdir. RP 31/04/2008 -+ if test -f "$absdir/$objdir/$depdepl" ; then -+ depdepl="$absdir/$objdir/$depdepl" -+ path="-L$absdir/$objdir" -+ elif test -f "$absdir/$depdepl" ; then -+ depdepl="$absdir/$depdepl" -+ path="-L$absdir" -+ else -+ path="-L$absdir/$objdir" -+ fi - ;; - esac - else |