current gcc-cross-intermediate has build failure in qemux86-64 lib64
multilib case. the reason is that it still use lib instead of lib64
while do_install use the libdir i.e. lib64

so this patch fix this issue by making gcc honour the libdir.

CC: Kumar Gala <ga...@kernel.crashing.org>
CC: Richard Purdie <richard.pur...@linuxfoundation.org>

Signed-off-by: Yu Ke <ke...@intel.com>
---
 meta/recipes-devtools/gcc/gcc-4.6.inc             |    2 +-
 meta/recipes-devtools/gcc/gcc-4.6/64bithack.patch |   16 +++++++++-------
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-4.6.inc 
b/meta/recipes-devtools/gcc/gcc-4.6.inc
index 0a148b4..ff8ca24 100644
--- a/meta/recipes-devtools/gcc/gcc-4.6.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.6.inc
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = "r7"
+PR = "r8"
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.6.0
diff --git a/meta/recipes-devtools/gcc/gcc-4.6/64bithack.patch 
b/meta/recipes-devtools/gcc/gcc-4.6/64bithack.patch
index 4b846bb..c1129ca 100644
--- a/meta/recipes-devtools/gcc/gcc-4.6/64bithack.patch
+++ b/meta/recipes-devtools/gcc/gcc-4.6/64bithack.patch
@@ -5,18 +5,20 @@ By default gcc places 64 bit libs in a lib64 directory. This 
makes it use
 
 RP 25/7/10
 
+revise it to honour base_libdir
+
+Yu Ke <ke...@intel.com> Aug 13, 2011
+
 Index: gcc-4.6.0/gcc/config/i386/t-linux64
 ===================================================================
 --- gcc-4.6.0.orig/gcc/config/i386/t-linux64
 +++ gcc-4.6.0/gcc/config/i386/t-linux64
-@@ -24,8 +24,8 @@
- # MULTILIB_OSDIRNAMES according to what is found on the target.
- 
+@@ -25,7 +25,7 @@
+
  MULTILIB_OPTIONS = m64/m32
--MULTILIB_DIRNAMES = 64 32 
+ MULTILIB_DIRNAMES = 64 32 
 -MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo 
$(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
-+MULTILIB_DIRNAMES = . 32
-+MULTILIB_OSDIRNAMES = . $(if $(wildcard $(shell echo 
$(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
- 
++MULTILIB_OSDIRNAMES = ../$(shell basename $(base_libdir)) $(if $(wildcard 
$(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
+
  LIBGCC = stmp-multilib
  INSTALL_LIBGCC = install-multilib
-- 
1.7.0.4


_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to