diff mbox

binutils: disable gold on mingw

Message ID 1490012430-748-1-git-send-email-ross.burton@intel.com
State Accepted
Commit b5a595a4be09756b88e91f3353e3b221b165ab44
Headers show

Commit Message

Ross Burton March 20, 2017, 12:20 p.m. UTC
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.

Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 meta/recipes-devtools/binutils/binutils.inc | 1 +
 1 file changed, 1 insertion(+)

-- 
2.8.1

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Comments

Khem Raj March 20, 2017, 2:45 p.m. UTC | #1
On Mon, Mar 20, 2017 at 5:20 AM, Ross Burton <ross.burton@intel.com> wrote:
> 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

>


looks ok

> Work around this by disabling gold entirely in mingw SDKs.

>

> Signed-off-by: Ross Burton <ross.burton@intel.com>

> ---

>  meta/recipes-devtools/binutils/binutils.inc | 1 +

>  1 file changed, 1 insertion(+)

>

> diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc

> index 37813dd..7efe13f 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} \

>

>  LDGOLD_class-native = ""

>  LDGOLD_class-crosssdk = ""

> +LDGOLD_sdkmingw32 = ""

>  LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default --enable-threads', d)}"

>

>  # This is necessary due to a bug in the binutils Makefiles

> --

> 2.8.1

>

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox

Patch

diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
index 37813dd..7efe13f 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} \
 
 LDGOLD_class-native = ""
 LDGOLD_class-crosssdk = ""
+LDGOLD_sdkmingw32 = ""
 LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default --enable-threads', d)}"
 
 # This is necessary due to a bug in the binutils Makefiles