[oe-commits] Constantin Musca : gcc: enable multilib for target gcc
git at git.openembedded.org
git at git.openembedded.org
Fri Feb 1 15:56:10 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: b26819c85881e82ee1b5c68840011e78c321f18e
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b26819c85881e82ee1b5c68840011e78c321f18e
Author: Constantin Musca <constantinx.musca at intel.com>
Date: Mon Dec 17 13:46:20 2012 +0200
gcc: enable multilib for target gcc
- add a task to setup multilib configuration for target gcc
- this commit adapts Nitin Kamble's work to gcc 4.7
- use a hash for storing arch-dependent multilib options
- patch gcc in order to use the multilib config files from the
build directory
Tests:
root at qemux86-64:~# gcc -m64 t.c -o t
root at qemux86-64:~# file t
t: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped
root at qemux86-64:~# ./t
Hello World !
root at qemux86-64:~# gcc -m32 t.c -o t
root at qemux86-64:~# file t
t: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped
root at qemux86-64:~# ./t
Hello World !
[YOCTO #1369]
Signed-off-by: Constantin Musca <constantinx.musca at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-devtools/gcc/gcc-4.7.inc | 3 +-
.../gcc/gcc-4.7/use-ml-conf-files-from-B.patch | 87 +++++++++
meta/recipes-devtools/gcc/gcc-common.inc | 24 +++
meta/recipes-devtools/gcc/gcc-configure-common.inc | 3 +-
meta/recipes-devtools/gcc/gcc-configure-target.inc | 1 +
meta/recipes-devtools/gcc/gcc-multilib-config.inc | 190 ++++++++++++++++++++
meta/recipes-devtools/gcc/libgcc_4.7.bb | 73 ++++++++
7 files changed, 379 insertions(+), 2 deletions(-)
Diff: http://git.openembedded.org/?p=openembedded-core.git/?a=commitdiff;h=b26819c85881e82ee1b5c68840011e78c321f18e
More information about the Openembedded-commits
mailing list