summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-08-07 21:26:21 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-07 22:30:07 (GMT)
commitd32e948f0372591d6479dfad878a9edd362832fe (patch)
tree3b6ea4e965854900eff4262385e4b520d78f9028
parent7e8b65b29b07b28b977591752768d04c6fe6c5d4 (diff)
downloadpoky-d32e948f0372591d6479dfad878a9edd362832fe.tar.gz
binutils: Enable threaded linking with gold
This options will let gold spawn multiple threads for linking and speeding up linking on multicore build hosts. (From OE-Core rev: 210957a58260ec50416649aba799d0e96aeeff24) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/binutils/binutils-2.22.inc2
-rw-r--r--meta/recipes-devtools/binutils/binutils.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.22.inc b/meta/recipes-devtools/binutils/binutils-2.22.inc
index e3e179d..17950a2 100644
--- a/meta/recipes-devtools/binutils/binutils-2.22.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.22.inc
@@ -1,4 +1,4 @@
1PR = "r13" 1PR = "r14"
2 2
3LIC_FILES_CHKSUM="\ 3LIC_FILES_CHKSUM="\
4 file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\ 4 file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
index cd923bd..ee748a4 100644
--- a/meta/recipes-devtools/binutils/binutils.inc
+++ b/meta/recipes-devtools/binutils/binutils.inc
@@ -53,7 +53,7 @@ B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
53EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ 53EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
54 --disable-werror \ 54 --disable-werror \
55 --enable-plugins \ 55 --enable-plugins \
56 ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default', '', d)} \ 56 ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '', d)} \
57 ${@base_contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}" 57 ${@base_contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}"
58 58
59# This is necessary due to a bug in the binutils Makefiles 59# This is necessary due to a bug in the binutils Makefiles