]> code.ossystems Code Review - meta-freescale.git/commitdiff
binutils: pull a patch from Yocto to fix path issue of libiberty
authorZhenhua Luo <b19537@freescale.com>
Fri, 9 Mar 2012 16:09:12 +0000 (16:09 +0000)
committerMatthew McClintock <msm@freescale.com>
Wed, 14 Mar 2012 21:43:43 +0000 (16:43 -0500)
     without the fix, following error appears when build native packages
     which require libierty.a:
         /usr/bin/ld: cannot find -liberty

Signed-off-by: Zhenhua Luo <b19537@freescale.com>
meta-fsl-ppc/recipes-devtools/binutils/binutils-fsl.inc
meta-fsl-ppc/recipes-devtools/binutils/files/libiberty_path_fix.patch [new file with mode: 0644]

index e425d42ae526ddb36d416d49064b26f361092461..88b5eac58675a5b1b4e8902c1153f56f331b6a14 100644 (file)
@@ -3,8 +3,9 @@ SRC_URI = "\
                file://bin.e5500.patch \
                file://bin.e6500-2.patch \
                file://bin.e500mc_nop.patch \
+               file://libiberty_path_fix.patch \
                "
 
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 
-PR .= "+${DISTRO}.0"
+PR .= "+${DISTRO}.1"
diff --git a/meta-fsl-ppc/recipes-devtools/binutils/files/libiberty_path_fix.patch b/meta-fsl-ppc/recipes-devtools/binutils/files/libiberty_path_fix.patch
new file mode 100644 (file)
index 0000000..3772dfb
--- /dev/null
@@ -0,0 +1,22 @@
+Upstream-Status: Inappropriate [embedded specific]
+
+don't let the distro compiler point to the wrong installation location
+
+Thanks to RP for helping find the source code causing the issue.
+
+2010/08/13
+Nitin A Kamble <nitin.a.kamble@intel.com>
+Index: binutils-2.20.1/libiberty/Makefile.in
+===================================================================
+--- binutils-2.20.1.orig/libiberty/Makefile.in
++++ binutils-2.20.1/libiberty/Makefile.in
+@@ -327,7 +327,8 @@ install: install_to_$(INSTALL_DEST) inst
+ # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
+ # default multilib, so we have to take CFLAGS into account as well,
+ # since it will be passed the multilib flags.
+-MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
++#MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
++MULTIOSDIR = ""
+ install_to_libdir: all
+       ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR)
+       $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)/$(MULTIOSDIR)/$(TARGETLIB)n