diff options
author | Ross Burton <ross.burton@intel.com> | 2017-03-20 12:20:30 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-21 22:39:17 +0000 |
commit | 69d3d55ea7e008d21ca187735b6be2e5fb237aef (patch) | |
tree | 837d7738f3d5be87ba7ed38d8aa539559f2b5ac0 /meta/recipes-devtools/binutils | |
parent | a1eb378771bcb427a60c56b8bfdbc93948917213 (diff) | |
download | poky-69d3d55ea7e008d21ca187735b6be2e5fb237aef.tar.gz |
binutils: disable gold on mingw
oe-core 759eed (binutils: Enable threading when gold is enabled and is not
default linker) causes linking in mingw SDKs to fail:
.../work/i686-nativesdk-mingw32-pokysdk-mingw32/binutils-cross-canadian-x86-64/2.28-r0
/recipe-sysroot-native/usr/bin/i686-pokysdk-mingw32/../../libexec/i686-pokysdk-mingw32/gcc/i686-pokysdk-mingw32/6.3.0/ld:
cannot find -lpthread
Work around this by disabling gold entirely in mingw SDKs.
(From OE-Core rev: b5a595a4be09756b88e91f3353e3b221b165ab44)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc index 37813dd864..7efe13fdf6 100644 --- a/meta/recipes-devtools/binutils/binutils.inc +++ b/meta/recipes-devtools/binutils/binutils.inc | |||
@@ -78,6 +78,7 @@ EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ | |||
78 | 78 | ||
79 | LDGOLD_class-native = "" | 79 | LDGOLD_class-native = "" |
80 | LDGOLD_class-crosssdk = "" | 80 | LDGOLD_class-crosssdk = "" |
81 | LDGOLD_sdkmingw32 = "" | ||
81 | LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default --enable-threads', d)}" | 82 | LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default --enable-threads', d)}" |
82 | 83 | ||
83 | # This is necessary due to a bug in the binutils Makefiles | 84 | # This is necessary due to a bug in the binutils Makefiles |