diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2012-04-03 12:35:03 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-04 17:17:52 +0100 |
commit | 834a17d6d816dd4a97690ecd551c2e76c9b73f4f (patch) | |
tree | 2047622fb23a671816e65531248c653c306cc477 | |
parent | 8b797c6b6e4c35c9b5ebaf1f6ca6c3332943ec61 (diff) | |
download | poky-834a17d6d816dd4a97690ecd551c2e76c9b73f4f.tar.gz |
gcc-cross-intermediate: fix do_install for x32
This Fixes [Ycoto #2223] bug.
The gcc osdir is obtained in the do_install by invocation of
command "gcc -print-multi-os-directory". For x32 it returns gcc
osdir for the default abi which is x86_64. Fix this by adding
target abi parameter to the gcc command line to get correct gcc
osdir with invocation of command "gcc -mx32 -print-multi-os-directory"
(From OE-Core rev: e65b6a4282d5c4882d0565b79ccba99db90161ff)
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross-intermediate.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc index 316a7647ec..c356576cd9 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc | |||
@@ -37,7 +37,7 @@ do_compile () { | |||
37 | do_install () { | 37 | do_install () { |
38 | oe_runmake 'DESTDIR=${D}' install | 38 | oe_runmake 'DESTDIR=${D}' install |
39 | install -d ${D}${target_base_libdir}/ | 39 | install -d ${D}${target_base_libdir}/ |
40 | osdir=`${D}${STAGING_BINDIR_TOOLCHAIN}.${PN}/${TARGET_PREFIX}gcc -print-multi-os-directory` | 40 | osdir=`${D}${STAGING_BINDIR_TOOLCHAIN}.${PN}/${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} -print-multi-os-directory` |
41 | mv ${D}${exec_prefix}/${TARGET_SYS}/lib/$osdir/* ${D}${target_base_libdir}/ | 41 | mv ${D}${exec_prefix}/${TARGET_SYS}/lib/$osdir/* ${D}${target_base_libdir}/ |
42 | 42 | ||
43 | # We don't really need this (here shares/ contains man/, info/, locale/). | 43 | # We don't really need this (here shares/ contains man/, info/, locale/). |