[Buildroot] [PATCH v3 0/3] Add go language support

Geoff Levand geoff at infradead.org
Mon May 2 16:37:50 UTC 2016


On Sun, 2016-05-01 at 03:43 +0000, Christian Stewart wrote:
> Indeed, the cross compiler toolchain is NOT compiled before Go. I
> think a dependency needs to be added for this.

I have the patch below that adds BR2_TOOLCHAIN_HAS_THREADS.  Is
it enough to pull in the toolchain?

-Geoff

>From b461b3a39f5ce64641006845157748295568151c Mon Sep 17 00:00:00 2001
From: Geoff Levand <geoff at infradead.org>
Date: Mon, 25 Apr 2016 12:59:04 -0700
Subject: [PATCH 1/9] package/go: Add BR2_TOOLCHAIN_HAS_THREADS

CGO needs thread support.  Fixes build errors like these:

  warning requested reentrant code, but thread support was disabled

Signed-off-by: Geoff Levand <geoff at infradead.org>
---
 package/go/Config.in.host | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/go/Config.in.host b/package/go/Config.in.host
index 094e402..e988483 100644
--- a/package/go/Config.in.host
+++ b/package/go/Config.in.host
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS
 	bool
 	default y
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_arm || BR2_aarch64 || BR2_i386 || BR2_x86_64 || BR2_powerpc
 	depends on !BR2_ARM_CPU_ARMV4
-- 
2.5.0





More information about the buildroot mailing list