[Buildroot] [PATCH 1/2] go: specify GOARM when compiling target binaries
Christian Stewart
christian at paral.in
Wed Nov 7 20:12:58 UTC 2018
Currently, GOARM is not specified correctly when compiling target binaries. This
results in incompatibility / illegal instruction issues on some ARM devices.
Signed-off-by: Christian Stewart <christian at paral.in>
---
package/go/go.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/go/go.mk b/package/go/go.mk
index ec74ba397c..8423dc7eea 100644
--- a/package/go/go.mk
+++ b/package/go/go.mk
@@ -43,6 +43,7 @@ HOST_GO_ROOT = $(HOST_DIR)/lib/go
HOST_GO_TOOLDIR = $(HOST_GO_ROOT)/pkg/tool/linux_$(GO_GOARCH)
HOST_GO_TARGET_ENV = \
GOARCH=$(GO_GOARCH) \
+ $(if $(GO_GOARM),GOARM=$(GO_GOARM)) \
GOROOT="$(HOST_GO_ROOT)" \
CC="$(TARGET_CC)" \
CXX="$(TARGET_CXX)" \
--
2.18.1
More information about the buildroot
mailing list