[1/9] Config: Set some Go environment variables

Message ID 20200416192714.25542-1-michael.tremer@ipfire.org
State Accepted
Commit b4863d7d141dd056a421e99a4f78060eba9d1038
Headers show
Series [1/9] Config: Set some Go environment variables | expand

Commit Message

Michael Tremer April 16, 2020, 7:27 p.m. UTC
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 lfs/Config | 10 ++++++++++
 1 file changed, 10 insertions(+)

Patch

diff --git a/lfs/Config b/lfs/Config
index a278b0155..26d463112 100644
--- a/lfs/Config
+++ b/lfs/Config
@@ -117,8 +117,18 @@  ifeq "$(BUILD_ARCH)" "aarch64"
 endif
 
 # Go
+export GOARCH
+export GOOS   = linux
 export GOPATH = $(HOME)/gopath
 
+ifeq "$(BUILD_ARCH)" "x86_64"
+	GOARCH = amd64
+endif
+
+ifeq "$(BUILD_ARCH)" "aarch64"
+	GOARCH = arm64
+endif
+
 ###############################################################################
 # Common Macro Definitions
 ###############################################################################