summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-configure-common.inc
diff options
context:
space:
mode:
authorConstantin Musca <constantinx.musca@intel.com>2012-12-17 13:46:20 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-01 15:54:31 +0000
commit703b70c98a86771a891b46382f3ee20c4ef93f39 (patch)
treeb4a64935644ce22b6f58d47e3dea56c0ee38af90 /meta/recipes-devtools/gcc/gcc-configure-common.inc
parent62285873e2a6b9375a96a3de7a500205aeb18fb3 (diff)
downloadpoky-703b70c98a86771a891b46382f3ee20c4ef93f39.tar.gz
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@qemux86-64:~# gcc -m64 t.c -o t root@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@qemux86-64:~# ./t Hello World ! root@qemux86-64:~# gcc -m32 t.c -o t root@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@qemux86-64:~# ./t Hello World ! [YOCTO #1369] (From OE-Core rev: b26819c85881e82ee1b5c68840011e78c321f18e) Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-configure-common.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-configure-common.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
index 4eb59fd583..b87ea62570 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
@@ -1,3 +1,4 @@
1require gcc-multilib-config.inc
1# 2#
2# Build the list of lanaguages to build. 3# Build the list of lanaguages to build.
3# 4#
@@ -25,7 +26,7 @@ EXTRA_OECONF_PATHS ?= ""
25EXTRA_OECONF_INITIAL ?= "" 26EXTRA_OECONF_INITIAL ?= ""
26EXTRA_OECONF_INTERMEDIATE ?= "" 27EXTRA_OECONF_INTERMEDIATE ?= ""
27 28
28GCCMULTILIB = "--disable-multilib" 29GCCMULTILIB ?= "--disable-multilib"
29GCCTHREADS ?= "posix" 30GCCTHREADS ?= "posix"
30 31
31EXTRA_OECONF = "${@['--enable-clocale=generic', ''][d.getVar('USE_NLS', True) != 'no']} \ 32EXTRA_OECONF = "${@['--enable-clocale=generic', ''][d.getVar('USE_NLS', True) != 'no']} \