From b4863d7d141dd056a421e99a4f78060eba9d1038 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 16 Apr 2020 19:27:06 +0000 Subject: [PATCH] Config: Set some Go environment variables Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- lfs/Config | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lfs/Config b/lfs/Config index a278b01553..26d4631126 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 ############################################################################### -- 2.39.2