]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-cross-intermediate: fix do_install for x32
authorNitin A Kamble <nitin.a.kamble@intel.com>
Tue, 3 Apr 2012 19:35:03 +0000 (12:35 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Apr 2012 15:54:32 +0000 (16:54 +0100)
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"

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
meta/recipes-devtools/gcc/gcc-cross-intermediate.inc

index 316a7647ecd6341b0e416d2c6e4b010901d6d3b9..c356576cd9579697d611687cf3e93b26a68a8d2c 100644 (file)
@@ -37,7 +37,7 @@ do_compile () {
 do_install () {
        oe_runmake 'DESTDIR=${D}' install
        install -d ${D}${target_base_libdir}/
-       osdir=`${D}${STAGING_BINDIR_TOOLCHAIN}.${PN}/${TARGET_PREFIX}gcc -print-multi-os-directory`
+       osdir=`${D}${STAGING_BINDIR_TOOLCHAIN}.${PN}/${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} -print-multi-os-directory`
        mv ${D}${exec_prefix}/${TARGET_SYS}/lib/$osdir/* ${D}${target_base_libdir}/
 
        # We don't really need this (here shares/ contains man/, info/, locale/).